Skip to content

Commit

Permalink
fixed ID clash in searchinfiles plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedeboer committed Apr 20, 2012
1 parent 9bf8fd2 commit 30e82ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions client/ext/searchinfiles/searchinfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ module.exports = ext.register("ext/searchinfiles/searchinfiles", {
},

init : function(amlNode){
this.txtFind = txtSFFind;
this.btnFind = btnSFFind;//winSearchInFiles.selectSingleNode("a:vbox/a:hbox/a:button[3]");
this.txtFind = txtSFFind;
this.btnFind = btnSFFind;//winSearchInFiles.selectSingleNode("a:vbox/a:hbox/a:button[3]");
this.btnFind.onclick = this.execFind.bind(this, false);

this.txtReplace = txtReplace;
this.btnReplaceAll = btnReplaceAll;
this.btnReplaceAll.onclick = this.execFind.bind(this, true);

Expand Down Expand Up @@ -174,7 +173,7 @@ module.exports = ext.register("ext/searchinfiles/searchinfiles", {
casesensitive: matchCase,
regexp: regex,
replaceAll: _self.replaceAll ? "true" : "false",
replacement: txtReplace.value
replacement: txtSFReplace.value
};
},

Expand Down
2 changes: 1 addition & 1 deletion client/ext/searchinfiles/searchinfiles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</a:hbox>
<a:hbox id="barReplace" align="center">
<a:label width="95">Replace With</a:label>
<a:textbox id="txtReplace" flex="1" />
<a:textbox id="txtSFReplace" flex="1" />
</a:hbox>
<a:hbox edge="10 0 5">
<a:fieldset flex="1" caption="Options" margin="0 0 1">
Expand Down

0 comments on commit 30e82ca

Please sign in to comment.