]>
git.wh0rd.org - tt-rss.git/blob - functions.js
1 var hotkeys_enabled
= true;
3 function exception_error(location
, e
) {
7 var base_fname
= e
.fileName
.substring(e
.fileName
.lastIndexOf("/") + 1);
9 msg
= "Exception: " + e
.name
+ ", " + e
.message
+
10 "\nFunction: " + location
+ "()" +
11 "\nLocation: " + base_fname
+ ":" + e
.lineNumber
;
13 msg
= "Exception: " + e
+ "\nFunction: " + location
+ "()";
19 function disableHotkeys() {
20 hotkeys_enabled
= false;
23 function enableHotkeys() {
24 hotkeys_enabled
= true;
27 function xmlhttp_ready(obj
) {
28 return obj
.readyState
== 4 || obj
.readyState
== 0 || !obj
.readyState
;
31 function notify_callback() {
32 var container
= document
.getElementById('notify');
33 if (xmlhttp
.readyState
== 4) {
34 container
.innerHTML
=xmlhttp
.responseText
;
38 function rpc_notify_callback() {
39 var container
= document
.getElementById('notify');
40 if (xmlhttp_rpc
.readyState
== 4) {
41 container
.innerHTML
=xmlhttp_rpc
.responseText
;
45 function rpc_pnotify_callback() {
46 var container
= parent
.document
.getElementById('notify');
47 if (xmlhttp_rpc
.readyState
== 4) {
48 container
.innerHTML
=xmlhttp_rpc
.responseText
;
52 function param_escape(arg
) {
53 if (typeof encodeURIComponent
!= 'undefined')
54 return encodeURIComponent(arg
);
59 function param_unescape(arg
) {
60 if (typeof decodeURIComponent
!= 'undefined')
61 return decodeURIComponent(arg
);
68 then
=new Date().getTime();
70 while((now
-then
)<gap
) {
71 now
=new Date().getTime();
75 var notify_hide_timerid
= false;
76 var notify_last_doc
= false;
78 function hide_notify() {
79 if (notify_last_doc
) {
80 var n
= notify_last_doc
.getElementById("notify");
81 if (navigator
.userAgent
.match("Firefox")) {
82 if (notify_opacity
>= 0) {
83 notify_opacity
= notify_opacity
- 0.2;
84 n
.style
.opacity
= notify_opacity
;
85 notify_hide_timerid
= window
.setTimeout(hide_notify
, 20);
87 n
.style
.display
= "none";
91 n
.style
.display
= "none";
96 function notify_real(msg
, doc
, no_hide
) {
98 var n
= doc
.getElementById("notify");
99 var nb
= doc
.getElementById("notify_body");
101 if (!n
|| !nb
) return;
104 n
.style
.display
= "none";
106 n
.style
.display
= "block";
111 if (notify_hide_timerid
) {
112 window
.clearTimeout(notify_hide_timerid
);
115 notify_last_doc
= doc
;
119 notify_hide_timerid
= window
.setTimeout(hide_notify
, 3000);
123 function p_notify(msg
, no_hide
) {
124 notify_real(msg
, parent
.document
, no_hide
);
127 function notify(msg
, no_hide
) {
128 notify_real(msg
, document
, no_hide
);
131 function printLockingError() {
132 notify("Please wait until operation finishes");}
136 function hotkey_handler(e
) {
140 if (!hotkeys_enabled
) return;
143 keycode
= window
.event
.keyCode
;
148 if (keycode
== 13 || keycode
== 27) {
151 seq
= seq
+ "" + keycode
;
154 if (document
.getElementById("piggie")) {
156 if (seq
.match("807371717369")) {
158 localPiggieFunction(true);
160 localPiggieFunction(false);
164 if (typeof localHotkeyHandler
!= 'undefined') {
166 localHotkeyHandler(keycode
);
168 exception_error("hotkey_handler", e
);
174 function cleanSelectedList(element
) {
175 var content
= document
.getElementById(element
);
177 if (!document
.getElementById("feedCatHolder")) {
178 for (i
= 0; i
< content
.childNodes
.length
; i
++) {
179 var child
= content
.childNodes
[i
];
181 child
.className
= child
.className
.replace("Selected", "");
187 for (i
= 0; i
< content
.childNodes
.length
; i
++) {
188 var child
= content
.childNodes
[i
];
189 if (child
.id
== "feedCatHolder") {
190 parent
.debug(child
.id
);
191 var fcat
= child
.lastChild
;
192 for (j
= 0; j
< fcat
.childNodes
.length
; j
++) {
193 var feed
= fcat
.childNodes
[j
];
194 feed
.className
= feed
.className
.replace("Selected", "");
202 function cleanSelected(element
) {
203 var content
= document
.getElementById(element
);
205 for (i
= 0; i
< content
.rows
.length
; i
++) {
206 content
.rows
[i
].className
= content
.rows
[i
].className
.replace("Selected", "");
210 function getVisibleUnreadHeadlines() {
211 var content
= document
.getElementById("headlinesList");
213 var rows
= new Array();
215 for (i
= 0; i
< content
.rows
.length
; i
++) {
216 var row_id
= content
.rows
[i
].id
.replace("RROW-", "");
217 if (row_id
.length
> 0 && content
.rows
[i
].className
.match("Unread")) {
224 function getVisibleHeadlineIds() {
226 var content
= document
.getElementById("headlinesList");
228 var rows
= new Array();
230 for (i
= 0; i
< content
.rows
.length
; i
++) {
231 var row_id
= content
.rows
[i
].id
.replace("RROW-", "");
232 if (row_id
.length
> 0) {
239 function getFirstVisibleHeadlineId() {
240 var rows
= getVisibleHeadlineIds();
244 function getLastVisibleHeadlineId() {
245 var rows
= getVisibleHeadlineIds();
246 return rows
[rows
.length
-1];
249 function markHeadline(id
) {
250 var row
= document
.getElementById("RROW-" + id
);
252 var is_active
= false;
254 if (row
.className
.match("Active")) {
257 row
.className
= row
.className
.replace("Selected", "");
258 row
.className
= row
.className
.replace("Active", "");
259 row
.className
= row
.className
.replace("Insensitive", "");
262 row
.className
= row
.className
= "Active";
265 var check
= document
.getElementById("RCHK-" + id
);
268 check
.checked
= true;
271 row
.className
= row
.className
+ "Selected";
276 function getFeedIds() {
277 var content
= document
.getElementById("feedsList");
279 var rows
= new Array();
281 for (i
= 0; i
< content
.rows
.length
; i
++) {
282 var id
= content
.rows
[i
].id
.replace("FEEDR-", "");
291 function setCookie(name
, value
, lifetime
, path
, domain
, secure
) {
297 d
.setTime(lifetime
* 1000);
300 int_setCookie(name
, value
, d
, path
, domain
, secure
);
304 function int_setCookie(name
, value
, expires
, path
, domain
, secure
) {
305 document
.cookie
= name
+ "=" + escape(value
) +
306 ((expires
) ? "; expires=" + expires
.toGMTString() : "") +
307 ((path
) ? "; path=" + path
: "") +
308 ((domain
) ? "; domain=" + domain
: "") +
309 ((secure
) ? "; secure" : "");
312 function delCookie(name
, path
, domain
) {
313 if (getCookie(name
)) {
314 document
.cookie
= name
+ "=" +
315 ((path
) ? ";path=" + path
: "") +
316 ((domain
) ? ";domain=" + domain
: "" ) +
317 ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
322 function getCookie(name
) {
324 var dc
= document
.cookie
;
325 var prefix
= name
+ "=";
326 var begin
= dc
.indexOf("; " + prefix
);
328 begin
= dc
.indexOf(prefix
);
329 if (begin
!= 0) return null;
334 var end
= document
.cookie
.indexOf(";", begin
);
338 return unescape(dc
.substring(begin
+ prefix
.length
, end
));
341 function disableContainerChildren(id
, disable
, doc
) {
343 if (!doc
) doc
= document
;
345 var container
= doc
.getElementById(id
);
347 for (var i
= 0; i
< container
.childNodes
.length
; i
++) {
348 var child
= container
.childNodes
[i
];
351 child
.disabled
= disable
;
357 if (child
.className
&& child
.className
.match("button")) {
358 child
.className
= "disabledButton";
361 if (child
.className
&& child
.className
.match("disabledButton")) {
362 child
.className
= "button";
369 function gotoPreferences() {
370 document
.location
.href
= "prefs.php";
373 function gotoMain() {
374 document
.location
.href
= "tt-rss.php";
377 function gotoExportOpml() {
378 document
.location
.href
= "opml.php?op=Export";
381 function getActiveFeedId() {
382 return getCookie("ttrss_vf_actfeed");
385 function setActiveFeedId(id
) {
386 return setCookie("ttrss_vf_actfeed", id
);
389 var xmlhttp_rpc
= false;
392 /*@if (@_jscript_version >= 5)
393 // JScript gives us Conditional compilation, we can cope with old IE versions.
394 // and security blocked creation of the objects.
396 xmlhttp_rpc = new ActiveXObject("Msxml2.XMLHTTP");
399 xmlhttp_rpc = new ActiveXObject("Microsoft.XMLHTTP");
406 if (!xmlhttp_rpc
&& typeof XMLHttpRequest
!='undefined') {
407 xmlhttp_rpc
= new XMLHttpRequest();
410 function parse_counters(reply
, f_document
, title_obj
, scheduled_call
) {
412 for (var l
= 0; l
< reply
.childNodes
.length
; l
++) {
413 if (!reply
.childNodes
[l
] ||
414 typeof(reply
.childNodes
[l
].getAttribute
) == "undefined") {
415 // where did this come from?
419 var id
= reply
.childNodes
[l
].getAttribute("id");
420 var t
= reply
.childNodes
[l
].getAttribute("type");
421 var ctr
= reply
.childNodes
[l
].getAttribute("counter");
422 var error
= reply
.childNodes
[l
].getAttribute("error");
423 var has_img
= reply
.childNodes
[l
].getAttribute("hi");
424 var updated
= reply
.childNodes
[l
].getAttribute("updated");
426 if (id
== "global-unread") {
427 title_obj
.global_unread
= ctr
;
428 title_obj
.updateTitle();
432 if (t
== "category") {
433 var catctr
= f_document
.getElementById("FCATCTR-" + id
);
435 catctr
.innerHTML
= "(" + ctr
+ " unread)";
440 var feedctr
= f_document
.getElementById("FEEDCTR-" + id
);
441 var feedu
= f_document
.getElementById("FEEDU-" + id
);
442 var feedr
= f_document
.getElementById("FEEDR-" + id
);
443 var feed_img
= f_document
.getElementById("FIMG-" + id
);
444 var feedlink
= f_document
.getElementById("FEEDL-" + id
);
446 if (updated
&& feedlink
) {
448 feedlink
.title
= "Error: " + error
+ " (" + updated
+ ")";
450 feedlink
.title
= "Updated: " + updated
;
454 if (feedctr
&& feedu
&& feedr
) {
456 if (feedu
.innerHTML
!= ctr
&& id
== getActiveFeedId() && scheduled_call
) {
457 var hf
= title_obj
.parent
.frames
["headlines-frame"];
458 hf
.location
.reload(true);
461 feedu
.innerHTML
= ctr
;
464 feedr
.className
= feedr
.className
.replace("feed", "error");
466 feedr
.className
= feedr
.className
.replace("error", "feed");
470 feedctr
.className
= "odd";
471 if (!feedr
.className
.match("Unread")) {
472 var is_selected
= feedr
.className
.match("Selected");
474 feedr
.className
= feedr
.className
.replace("Selected", "");
475 feedr
.className
= feedr
.className
.replace("Unread", "");
477 feedr
.className
= feedr
.className
+ "Unread";
480 feedr
.className
= feedr
.className
+ "Selected";
485 feedctr
.className
= "invisible";
486 feedr
.className
= feedr
.className
.replace("Unread", "");
491 exception_error("parse_counters", e
);
495 // this one is called from feedlist context
496 // thus title_obj passed to parse_counters is parent (e.g. main ttrss window)
498 function all_counters_callback() {
499 if (xmlhttp_rpc
.readyState
== 4) {
501 if (!xmlhttp_rpc
.responseXML
|| !xmlhttp_rpc
.responseXML
.firstChild
) {
502 notify("[all_counters_callback] backend did not return valid XML");
506 if (!parent
.frames
["feeds-frame"]) {
507 notify("[all_counters_callback] no parent feeds-frame");
511 var reply
= xmlhttp_rpc
.responseXML
.firstChild
;
512 var f_document
= parent
.frames
["feeds-frame"].document
;
514 parse_counters(reply
, f_document
, parent
);
517 exception_error("all_counters_callback", e
);
522 function update_all_counters(feed
) {
523 if (xmlhttp_ready(xmlhttp_rpc
)) {
524 var query
= "backend.php?op=rpc&subop=getAllCounters";
527 query
= query
+ "&aid=" + feed
;
530 xmlhttp_rpc
.open("GET", query
, true);
531 xmlhttp_rpc
.onreadystatechange
=all_counters_callback
;
532 xmlhttp_rpc
.send(null);
536 function popupHelp(tid
) {
537 var w
= window
.open("backend.php?op=help&tid=" + tid
,
539 "menubar=no,location=no,resizable=yes,scrollbars=yes,status=no");
542 /** * @(#)isNumeric.js * * Copyright (c) 2000 by Sundar Dorai-Raj
543 * * @author Sundar Dorai-Raj
544 * * Email: sdoraira@vt.edu
545 * * This program is free software; you can redistribute it and/or
546 * * modify it under the terms of the GNU General Public License
547 * * as published by the Free Software Foundation; either version 2
548 * * of the License, or (at your option) any later version,
549 * * provided that any use properly credits the author.
550 * * This program is distributed in the hope that it will be useful,
551 * * but WITHOUT ANY WARRANTY; without even the implied warranty of
552 * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
553 * * GNU General Public License for more details at http://www.gnu.org * * */
555 var numbers
=".0123456789";
556 function isNumeric(x
) {
557 // is x a String or a character?
559 // remove negative sign
561 for(j
=0;j
<x
.length
;j
++) {
562 // call isNumeric recursively for each character
563 number
=isNumeric(x
.substring(j
,j
+1));
564 if(!number
) return number
;
569 // if x is number return true
570 if(numbers
.indexOf(x
)>=0) return true;
576 function hideOrShowFeeds(doc
, hide
) {
578 if (!doc
.styleSheets
) return;
580 var css_rules
= doc
.styleSheets
[0].cssRules
;
582 if (!css_rules
|| !css_rules
.length
) return;
584 for (i
= 0; i
< css_rules
.length
; i
++) {
585 var rule
= css_rules
[i
];
587 if (rule
.selectorText
== "ul.feedList li.feed") {
589 rule
.style
.display
= "block";
591 rule
.style
.display
= "none";
599 function selectTableRow(r
, do_select
) {
600 r
.className
= r
.className
.replace("Selected", "");
603 r
.className
= r
.className
+ "Selected";
607 function selectTableRowById(elem_id
, check_id
, do_select
) {
611 var row
= document
.getElementById(elem_id
);
614 selectTableRow(row
, do_select
);
617 var check
= document
.getElementById(check_id
);
620 check
.checked
= do_select
;
623 exception_error("selectTableRowById", e
);
627 function selectTableRowsByIdPrefix(content_id
, prefix
, check_prefix
, do_select
,
628 classcheck
, reset_others
) {
630 var content
= document
.getElementById(content_id
);
633 alert("[selectTableRows] Element " + content_id
+ " not found.");
637 for (i
= 0; i
< content
.rows
.length
; i
++) {
638 if (!classcheck
|| content
.rows
[i
].className
.match(classcheck
)) {
640 if (content
.rows
[i
].id
.match(prefix
)) {
641 selectTableRow(content
.rows
[i
], do_select
);
643 var row_id
= content
.rows
[i
].id
.replace(prefix
, "");
644 var check
= document
.getElementById(check_prefix
+ row_id
);
647 check
.checked
= do_select
;
649 } else if (reset_others
) {
650 selectTableRow(content
.rows
[i
], false);
652 var row_id
= content
.rows
[i
].id
.replace(prefix
, "");
653 var check
= document
.getElementById(check_prefix
+ row_id
);
656 check
.checked
= false;
660 } else if (reset_others
) {
661 selectTableRow(content
.rows
[i
], false);
663 var row_id
= content
.rows
[i
].id
.replace(prefix
, "");
664 var check
= document
.getElementById(check_prefix
+ row_id
);
667 check
.checked
= false;
674 function getSelectedTableRowIds(content_id
, prefix
) {
676 var content
= document
.getElementById(content_id
);
679 alert("[getSelectedTableRowIds] Element " + content_id
+ " not found.");
683 var sel_rows
= new Array();
685 for (i
= 0; i
< content
.rows
.length
; i
++) {
686 if (content
.rows
[i
].id
.match(prefix
) &&
687 content
.rows
[i
].className
.match("Selected")) {
689 var row_id
= content
.rows
[i
].id
.replace(prefix
+ "-", "");
690 sel_rows
.push(row_id
);
698 function toggleSelectRowById(sender
, id
) {
699 var row
= document
.getElementById(id
);
701 if (sender
.checked
) {
702 if (!row
.className
.match("Selected")) {
703 row
.className
= row
.className
+ "Selected";
706 if (row
.className
.match("Selected")) {
707 row
.className
= row
.className
.replace("Selected", "");
712 function toggleSelectListRow(sender
) {
713 var parent_row
= sender
.parentNode
;
715 if (sender
.checked
) {
716 if (!parent_row
.className
.match("Selected")) {
717 parent_row
.className
= parent_row
.className
+ "Selected";
720 if (parent_row
.className
.match("Selected")) {
721 parent_row
.className
= parent_row
.className
.replace("Selected", "");
727 function toggleSelectRow(sender
) {
728 var parent_row
= sender
.parentNode
.parentNode
;
730 if (sender
.checked
) {
731 if (!parent_row
.className
.match("Selected")) {
732 parent_row
.className
= parent_row
.className
+ "Selected";
735 if (parent_row
.className
.match("Selected")) {
736 parent_row
.className
= parent_row
.className
.replace("Selected", "");
741 function openExternalUrl(url
) {
742 var w
= window
.open(url
);
745 function getRelativeFeedId(list
, id
, direction
, unread_only
) {
747 if (direction
== "next") {
748 for (i
= 0; i
< list
.childNodes
.length
; i
++) {
749 var child
= list
.childNodes
[i
];
750 if (child
.id
&& child
.id
== "feedCatHolder") {
751 if (child
.lastChild
) {
752 var cr
= getRelativeFeedId(child
.firstChild
, id
, direction
);
755 } else if (child
.id
&& child
.id
.match("FEEDR-")) {
756 return child
.id
.replace('FEEDR-', '');
761 // FIXME select last feed doesn't work when only unread feeds are visible
763 if (direction
== "prev") {
764 for (i
= list
.childNodes
.length
-1; i
>= 0; i
--) {
765 var child
= list
.childNodes
[i
];
766 if (child
.id
== "feedCatHolder") {
767 if (child
.firstChild
) {
768 var cr
= getRelativeFeedId(child
.firstChild
, id
, direction
);
771 } else if (child
.id
.match("FEEDR-")) {
773 if (getCookie("ttrss_vf_hreadf") == 1) {
774 if (child
.className
!= "feed") {
775 alert(child
.className
);
776 return child
.id
.replace('FEEDR-', '');
779 return child
.id
.replace('FEEDR-', '');
786 var feed
= list
.ownerDocument
.getElementById("FEEDR-" + getActiveFeedId());
788 if (getCookie("ttrss_vf_hreadf") == 1) {
792 if (direction
== "next") {
802 } else if (e
.parentNode
.parentNode
.nextSibling
) {
804 var this_cat
= e
.parentNode
.parentNode
;
808 if (this_cat
&& this_cat
.nextSibling
) {
809 while (!e
&& this_cat
.nextSibling
) {
810 this_cat
= this_cat
.nextSibling
;
811 if (this_cat
.id
== "feedCatHolder") {
812 e
= this_cat
.firstChild
.firstChild
;
822 if (!unread_only
|| (unread_only
&& e
.className
!= "feed" &&
823 e
.className
!= "error")) {
824 return e
.id
.replace("FEEDR-", "");
829 } else if (direction
== "prev") {
835 if (e
.previousSibling
) {
837 e
= e
.previousSibling
;
839 } else if (e
.parentNode
.parentNode
.previousSibling
) {
841 var this_cat
= e
.parentNode
.parentNode
;
845 if (this_cat
&& this_cat
.previousSibling
) {
846 while (!e
&& this_cat
.previousSibling
) {
847 this_cat
= this_cat
.previousSibling
;
848 if (this_cat
.id
== "feedCatHolder") {
849 e
= this_cat
.firstChild
.lastChild
;
859 if (!unread_only
|| (unread_only
&& e
.className
!= "feed" &&
860 e
.className
!= "error")) {
861 return e
.id
.replace("FEEDR-", "");
869 function showBlockElement(id
) {
870 var elem
= document
.getElementById(id
);
873 elem
.style
.display
= "block";
875 alert("[showBlockElement] can't find element with id " + id
);
879 function hideParentElement(e
) {
880 e
.parentNode
.style
.display
= "none";
883 function dropboxSelect(e
, v
) {
884 for (i
= 0; i
< e
.length
; i
++) {
885 if (e
[i
].value
== v
) {
892 // originally stolen from http://www.11tmr.com/11tmr.nsf/d6plinks/MWHE-695L9Z
893 // bugfixed just a little bit :-)
894 function getURLParam(strParamName
){
896 var strHref
= window
.location
.href
;
898 if (strHref
.indexOf("#") == strHref
.length
-1) {
899 strHref
= strHref
.substring(0, strHref
.length
-1);
902 if ( strHref
.indexOf("?") > -1 ){
903 var strQueryString
= strHref
.substr(strHref
.indexOf("?"));
904 var aQueryString
= strQueryString
.split("&");
905 for ( var iParam
= 0; iParam
< aQueryString
.length
; iParam
++ ){
906 if (aQueryString
[iParam
].indexOf(strParamName
+ "=") > -1 ){
907 var aParam
= aQueryString
[iParam
].split("=");
908 strReturn
= aParam
[1];
916 function leading_zero(p
) {
918 if (s
.length
== 1) s
= "0" + s
;
922 function center_element(e
) {
925 var c_width
= document
.body
.clientWidth
;
926 var c_height
= document
.body
.clientHeight
;
928 var c_scroll
= document
.body
.scrollTop
;
930 var e_width
= e
.clientWidth
;
931 var e_height
= e
.clientHeight
;
933 var set_y
= (c_height
/ 2) + c_scroll
- (e_height
/ 2);
934 var set_x
= (c_width
/ 2) - (e_width
/ 2);
936 e
.style
.top
= set_y
+ "px";
937 e
.style
.left
= set_x
+ "px";
939 exception_error("center_element", e
);
943 function closeInfoBox() {
944 var box
= document
.getElementById('infoBox');
945 var shadow
= document
.getElementById('infoBoxShadow');
948 shadow
.style
.display
= "none";
950 box
.style
.display
= "none";
957 function displayDlg(id
, param
) {
959 if (!xmlhttp_ready(xmlhttp
)) {
966 xmlhttp
.open("GET", "backend.php?op=dlg&id=" +
967 param_escape(id
) + "¶m=" + param_escape(param
), true);
968 xmlhttp
.onreadystatechange
=infobox_callback
;
975 function infobox_submit_callback() {
976 if (xmlhttp
.readyState
== 4) {
977 notify(xmlhttp
.responseText
);
980 // called from prefs, reload tab
982 selectTab(active_tab
, false);
987 function infobox_callback() {
988 if (xmlhttp
.readyState
== 4) {
989 var box
= document
.getElementById('infoBox');
990 var shadow
= document
.getElementById('infoBoxShadow');
992 box
.innerHTML
=xmlhttp
.responseText
;
994 shadow
.style
.display
= "block";
996 box
.style
.display
= "block";
1002 function qaddFilter() {
1004 if (!xmlhttp_ready(xmlhttp
)) {
1005 printLockingError();
1009 var regexp
= document
.getElementById("fadd_regexp");
1010 var match
= document
.getElementById("fadd_match");
1011 var feed
= document
.getElementById("fadd_feed");
1012 var action
= document
.getElementById("fadd_action");
1014 if (regexp
.value
.length
== 0) {
1015 alert("Missing filter expression.");
1017 notify("Adding filter...");
1019 var v_match
= match
[match
.selectedIndex
].text
;
1020 var feed_id
= feed
[feed
.selectedIndex
].id
;
1021 var action_id
= action
[action
.selectedIndex
].id
;
1023 xmlhttp
.open("GET", "backend.php?op=pref-filters&quiet=1&subop=add®exp=" +
1024 param_escape(regexp
.value
) + "&match=" + v_match
+
1025 "&fid=" + param_escape(feed_id
) + "&aid=" + param_escape(action_id
), true);
1027 xmlhttp
.onreadystatechange
=infobox_submit_callback
;
1035 function toggleSubmitNotEmpty(e
, submit_id
) {
1037 document
.getElementById(submit_id
).disabled
= (e
.value
== "")
1039 exception_error("toggleSubmitNotEmpty", e
);