Skip to content

Commit

Permalink
Updated code to get parent node
Browse files Browse the repository at this point in the history
  • Loading branch information
onpubcom committed Dec 9, 2011
1 parent 2714687 commit f058e67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manage/js/onpub.js
Expand Up @@ -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"});
Expand All @@ -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"));
}
}
Expand Down

0 comments on commit f058e67

Please sign in to comment.