summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-05-04 07:46:32 +0100
committerAndrew Dolgov <[email protected]>2008-05-04 07:46:32 +0100
commit7a822893ce9f83d69b5fc0d6d4544d0288a97c32 (patch)
tree67463f7b53c7125bf4a705b01c3fee44d1f2d687 /functions.js
parent69811a7d4e00a32e9ea4a64a730f786f45eb010b (diff)
online search in headline buffer (hotkey shift-I)
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js59
1 files changed, 37 insertions, 22 deletions
diff --git a/functions.js b/functions.js
index 9ef91c59a..088b986ee 100644
--- a/functions.js
+++ b/functions.js
@@ -353,6 +353,19 @@ function hotkey_handler(e) {
}
}
+ if (keycode == 73 && shift_key) { // shift + i
+ if (document.getElementById("subtoolbar_search")) {
+ if (Element.visible("subtoolbar_search")) {
+ Element.hide("subtoolbar_search");
+ Element.show("subtoolbar_ftitle");
+ setTimeout("Element.focus('subtoolbar_search_box')", 100);
+ } else {
+ Element.show("subtoolbar_search");
+ Element.hide("subtoolbar_ftitle");
+ }
+ }
+ }
+
if (typeof localHotkeyHandler != 'undefined') {
try {
return localHotkeyHandler(e);
@@ -1056,38 +1069,40 @@ function selectTableRowsByIdPrefix(content_id, prefix, check_prefix, do_select,
}
for (i = 0; i < content.rows.length; i++) {
- if (!classcheck || content.rows[i].className.match(classcheck)) {
+ if (Element.visible(content.rows[i])) {
+ if (!classcheck || content.rows[i].className.match(classcheck)) {
+
+ if (content.rows[i].id.match(prefix)) {
+ selectTableRow(content.rows[i], do_select);
+
+ var row_id = content.rows[i].id.replace(prefix, "");
+ var check = document.getElementById(check_prefix + row_id);
+
+ if (check) {
+ check.checked = do_select;
+ }
+ } else if (reset_others) {
+ selectTableRow(content.rows[i], false);
+
+ var row_id = content.rows[i].id.replace(prefix, "");
+ var check = document.getElementById(check_prefix + row_id);
+
+ if (check) {
+ check.checked = false;
+ }
- if (content.rows[i].id.match(prefix)) {
- selectTableRow(content.rows[i], do_select);
-
- var row_id = content.rows[i].id.replace(prefix, "");
- var check = document.getElementById(check_prefix + row_id);
-
- if (check) {
- check.checked = do_select;
}
} else if (reset_others) {
selectTableRow(content.rows[i], false);
-
+
var row_id = content.rows[i].id.replace(prefix, "");
var check = document.getElementById(check_prefix + row_id);
-
+
if (check) {
check.checked = false;
}
-
- }
- } else if (reset_others) {
- selectTableRow(content.rows[i], false);
-
- var row_id = content.rows[i].id.replace(prefix, "");
- var check = document.getElementById(check_prefix + row_id);
-
- if (check) {
- check.checked = false;
+
}
-
}
}
}