Commit b7a230c9cdd43a7d682e6c6f1d1bdcd722e6b492

Authored by Gustavo
1 parent 4469a39a

Updated crop news js

Showing 1 changed file with 2 additions and 3 deletions   Show diff stats
amadeus/static/js/crop_news.js
@@ -14,14 +14,13 @@ $(function () { @@ -14,14 +14,13 @@ $(function () {
14 14
15 /* Scripts da caixa de corte da imagem */ 15 /* Scripts da caixa de corte da imagem */
16 var $image = $("#image"); 16 var $image = $("#image");
17 - var cropBoxData = {"width":700,"height":200}; 17 + var cropBoxData;
18 var canvasData; 18 var canvasData;
19 $("#modalCrop").on("shown.bs.modal", function () { 19 $("#modalCrop").on("shown.bs.modal", function () {
20 $image.cropper({ 20 $image.cropper({
21 - cropBoxResizable: false,  
22 viewMode: 1 , 21 viewMode: 1 ,
23 aspectRatio: 7/2, 22 aspectRatio: 7/2,
24 - minCropBoxWidth: 700, 23 + minCropBoxWidth: 200,
25 minCropBoxHeight: 200, 24 minCropBoxHeight: 200,
26 dragMode: 'move', 25 dragMode: 'move',
27 ready: function () { 26 ready: function () {