Permalink
Browse files

Fix loading of actions with locator as an option

Without this change dragDropElemToElem actions won't get loaded properly (at least in Firefox).
  • Loading branch information...
1 parent 4304ee7 commit 6517d2cbe1597676384a0708626e368604c1587d @visadb visadb committed Feb 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 windmill/html/js/wm/ide/remote.js
@@ -353,9 +353,9 @@ windmill.ui.remote = new function() {
newOpt = jQuery('<option>');
newOpt.attr("value", "opt"+reg.locator[loc]);
newOpt.html(reg.locator[loc]);
- if (state.params[newOpt.value]){
+ if (state.params[newOpt.attr('value')]){
newOpt.attr("selected", "selected");
- windmill.ui.remote.optionValue = state.params[newOpt.value];
+ windmill.ui.remote.optionValue = state.params[newOpt.attr('value')];
}
select.append(newOpt);
}

0 comments on commit 6517d2c

Please sign in to comment.