Fix bootstrap conflict

This commit is contained in:
Romain Neutron
2012-07-23 12:42:35 +02:00
parent 2cebd50313
commit 7eefbe1c76

View File

@@ -94,6 +94,10 @@
$image.removeAttr('ondragstart'); $image.removeAttr('ondragstart');
} }
$image.draggable(); $image.draggable();
$image.css({
'max-width':'none',
'max-height':'none'
});
var image_width = parseInt($('input[name="width"]', $this).val()); var image_width = parseInt($('input[name="width"]', $this).val());
var image_height = parseInt($('input[name="height"]', $this).val()); var image_height = parseInt($('input[name="height"]', $this).val());
@@ -147,18 +151,20 @@
if(bool) if(bool)
{ {
if(w1 * 1.08 < 32767) if((w1 * 1.08) < 32767) {
w2 = w1 * 1.08; w2 = w1 * 1.08;
else } else {
w2 = w1; w2 = w1;
} }
}
else else
{ {
if(w1 / 1.08 > 20) if((w1 / 1.08) > 20) {
w2 = w1 / 1.08; w2 = w1 / 1.08;
else } else {
w2 = w1; w2 = w1;
} }
}
var datas = $(this).data('image_enhance'); var datas = $(this).data('image_enhance');