diff --git a/README-UNL.txt b/README-UNL.txt new file mode 100644 index 0000000000000000000000000000000000000000..8664744c45f22d3b3964861587753c76fdf05e07 --- /dev/null +++ b/README-UNL.txt @@ -0,0 +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 diff --git a/plugins/advimage/js/image.js b/plugins/advimage/js/image.js index 546b69c0de705f4e51886264a1c2cb650652123c..0dec9dc839ffff75d080591afc039f4431eafbe8 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 6c2489a1680beae261dafa4cea114b108e4708ae..bd72e5044d7b960b60501e21f5202c3c8cb02b60 100644 --- a/themes/advanced/js/image.js +++ b/themes/advanced/js/image.js @@ -229,7 +229,12 @@ 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;