diff options
author | svncommit <devs@roundcube.net> | 2007-02-26 07:19:44 +0000 |
---|---|---|
committer | svncommit <devs@roundcube.net> | 2007-02-26 07:19:44 +0000 |
commit | 87e2fddb32da8580f73c5ec0628e9eacfb4e0043 (patch) | |
tree | 33a5448f5e22896a0375ce418df5ba294076ebfa /program/js/tiny_mce/plugins/searchreplace/jscripts | |
parent | e17702395e1aa0fa54eea36817e1150c231d49eb (diff) |
upgrade to TinyMCE v2.1.0
Diffstat (limited to 'program/js/tiny_mce/plugins/searchreplace/jscripts')
-rwxr-xr-x | program/js/tiny_mce/plugins/searchreplace/jscripts/searchreplace.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/program/js/tiny_mce/plugins/searchreplace/jscripts/searchreplace.js b/program/js/tiny_mce/plugins/searchreplace/jscripts/searchreplace.js index 2eca3ea64..ac6cdf6fc 100755 --- a/program/js/tiny_mce/plugins/searchreplace/jscripts/searchreplace.js +++ b/program/js/tiny_mce/plugins/searchreplace/jscripts/searchreplace.js @@ -13,8 +13,6 @@ function init() { formObj[task + "_panel_casesensitivebox"].checked = tinyMCE.getWindowArg("casesensitive");
formObj[task + "_panel_backwardsu"].checked = tinyMCE.getWindowArg("backwards");
formObj[task + "_panel_backwardsd"].checked = !tinyMCE.getWindowArg("backwards");
-
- tinyMCEPopup.execCommand("mceResetSearch", false, {dummy : ""}, false);
}
function searchNext(replacemode) {
@@ -26,7 +24,7 @@ function searchNext(replacemode) { if (task == "replace") {
// Whats the point?
if (formObj[task + "_panel_searchstring"].value == "" || formObj[task + "_panel_searchstring"].value == formObj[task + "_panel_replacestring"].value)
- return;
+ return false;
}
// Do search
@@ -35,10 +33,13 @@ function searchNext(replacemode) { replacestring : formObj["replace_panel_replacestring"].value,
replacemode : replacemode,
casesensitive : formObj[task + "_panel_casesensitivebox"].checked,
- backwards : false
+ backwards : formObj[task + "_panel_backwardsu"].checked,
+ win : window
}, false);
window.focus();
+
+ return false;
}
function cancelAction() {
|