egroupware/phpgwapi/js/tiny_mce/plugins/searchreplace/jscripts/search.js

37 lines
1.1 KiB
JavaScript
Raw Normal View History

2006-08-21 21:26:21 +02:00
function init() {
tinyMCEPopup.resizeToInnerSize();
var formObj = document.forms[0];
formObj.searchstring.value = tinyMCE.getWindowArg("searchstring");
formObj.casesensitivebox.checked = tinyMCE.getWindowArg("casesensitive");
formObj.backwards[0].checked = tinyMCE.getWindowArg("backwards");
formObj.backwards[1].checked = !tinyMCE.getWindowArg("backwards");
// formObj.wrapatend.checked = tinyMCE.getWindowArg("wrap");
// formObj.wholeword.checked = tinyMCE.getWindowArg("wholeword");
tinyMCEPopup.execCommand("mceResetSearch", false, {dummy : ""}, false);
}
function searchNext() {
var formObj = document.forms[0];
if (formObj.searchstring.value == "")
return;
// Do search
tinyMCEPopup.execCommand('mceSearch', false, {
string : formObj.searchstring.value,
casesensitive : formObj.casesensitivebox.checked,
backwards : formObj.backwards[0].checked
// wrap : formObj.wrapatend.checked,
// wholeword : formObj.wholeword.checked
}, false);
window.focus();
}
function cancelAction() {
tinyMCEPopup.close();
}