Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated code to get parent node

  • Loading branch information...
commit f058e678b6b7cdacaea4a837571c2f4bf9f5fbdf 1 parent 2714687
@onpubcom authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 manage/js/onpub.js
View
4 manage/js/onpub.js
@@ -344,7 +344,7 @@ YUI(
}
else {
option = currentTarget;
- parent = option.get("parentElement");
+ parent = option.get("parentNode");
options = parent.get("options");
options.setStyles({"backgroundColor":"#ffffff", "color":"#525861"});
option.setStyles({"backgroundColor":"#0C7CCF", "color":"#ffffff"});
@@ -360,7 +360,7 @@ YUI(
thumbURL = onpubThumbURLs[thumbIndex];
widgetImage.set("src", thumbURL);
widgetImage.setStyle("display", "inline");
- parent = widgetImage.get("parentElement");
+ parent = widgetImage.get("parentNode");
parent.set("href", "index.php?onpub=EditImage&imageID=" + option.get("value"));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.