Lines Matching full:dialog
2 * Implements the Find and Replace dialog
11 // the dialog HTML
12 var $dialog = jQuery(
43 // pointers to the various elements in the dialog
44 $dialog.components = {
45 in_find: $dialog.find('input.find'),
46 btn_find: $dialog.find('button.find'),
47 chk_casematch: $dialog.find('input.casematch'),
48 chk_regexp: $dialog.find('input.regexp'),
49 chk_words: $dialog.find('input.words'),
50 in_replace: $dialog.find('input.replace'),
51 btn_replace: $dialog.find('button.replace'),
52 btn_find_replace: $dialog.find('button.find_replace'),
53 btn_replace_all: $dialog.find('button.replace_all')
57 $dialog.components.btn_find.click(handle_find);
58 $dialog.components.btn_replace.click(handle_replace);
59 $dialog.components.btn_find_replace.click(handle_find_replace);
60 $dialog.components.btn_replace_all.click(handle_replace_all);
64 * Initialize the dialog
66 $dialog.dialog({
77 $dialog.dialog('destroy');
78 $dialog.remove();
84 * Refocus the textarea after interaction with the dialog
88 $dialog.dialog('widget').mouseup(function (e) {
107 var term = $dialog.components.in_find.val();
129 var text = $dialog.components.in_replace.val();
153 var term = $dialog.components.in_find.val();
156 var repl = $dialog.components.in_replace.val();
242 if (!$dialog.components.chk_regexp.prop('checked')) {
245 if (!$dialog.components.chk_casematch.prop('checked')) {
248 if ($dialog.components.chk_words.prop('checked')) {