Permalink
Browse files

Updated code to get parent node

  • Loading branch information...
1 parent 2714687 commit f058e678b6b7cdacaea4a837571c2f4bf9f5fbdf @onpubcom committed Dec 9, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 manage/js/onpub.js
View
@@ -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"));
}
}

0 comments on commit f058e67

Please sign in to comment.