diff --git a/README-UNL.txt b/README-UNL.txt index 8664744c45f22d3b3964861587753c76fdf05e07..23197317fcfad7e657e199c7e8f3aa4bf5229e12 100644 --- a/README-UNL.txt +++ b/README-UNL.txt @@ -1,5 +1,5 @@ UNL Modifications to Core (Marked with "Start UNL Change"): ---------------- -Both image.js files (in plugins/advimage and themes) have been modified to not autofill image width and height. ----------------- \ No newline at end of file +Both image.js files (in plugins/advimage/js and themes/advanced/js) have been modified to not autofill image width and height. +---------------- diff --git a/plugins/advimage/js/image.js b/plugins/advimage/js/image.js index f0b7c6eef58ce254a70697e9190c2a4768a0ee6d..082247137991046a4dab8bc417762f27781788e8 100644 --- a/plugins/advimage/js/image.js +++ b/plugins/advimage/js/image.js @@ -314,8 +314,13 @@ var ImageDialog = { var f = document.forms[0]; if (!st) { - f.elements.width.value = img.width; - f.elements.height.value = img.height; + // Start UNL Change! + + // By default, we don't want width and height specified. + //f.elements.width.value = img.width; + //f.elements.height.value = img.height; + + // END UNL Change! } this.preloadImg = img; diff --git a/themes/advanced/js/image.js b/themes/advanced/js/image.js index bb09e75bf5970001ac43c2988580f1526715808f..cf2cc6b0ac723c27f03d8ae00c39d8fe550ff908 100644 --- a/themes/advanced/js/image.js +++ b/themes/advanced/js/image.js @@ -232,6 +232,11 @@ var ImageDialog = { updateImageData : function() { var f = document.forms[0], t = ImageDialog; + // Start UNL Change! + // By default, we don't want width and height specified. + return; + // End UNL Change! + if (f.width.value == "") f.width.value = t.preloadImg.width;