Skip to content
Snippets Groups Projects
Commit 5eae2ecc authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

[gh-3] Add image height/width autofill changes

Were wiped out in 20952794
parent 20952794
Branches
No related tags found
No related merge requests found
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.
Both image.js files (in plugins/advimage/js and themes/advanced/js) have been modified to not autofill image width and height.
----------------
......@@ -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;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment