]>
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
) {
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
;
118 notify_hide_timerid
= window
.setTimeout(hide_notify
, 3000);
121 function p_notify(msg
) {
122 notify_real(msg
, parent
.document
);
125 function notify(msg
) {
126 notify_real(msg
, document
);
129 function printLockingError() {
130 notify("Please wait until operation finishes");}
134 function hotkey_handler(e
) {
138 if (!hotkeys_enabled
) return;
141 keycode
= window
.event
.keyCode
;
146 if (keycode
== 13 || keycode
== 27) {
149 seq
= seq
+ "" + keycode
;
152 if (document
.getElementById("piggie")) {
154 if (seq
.match("807371717369")) {
156 localPiggieFunction(true);
158 localPiggieFunction(false);
162 if (typeof localHotkeyHandler
!= 'undefined') {
164 localHotkeyHandler(keycode
);
166 exception_error("hotkey_handler", e
);
172 function cleanSelectedList(element
) {
173 var content
= document
.getElementById(element
);
175 if (!document
.getElementById("feedCatHolder")) {
176 for (i
= 0; i
< content
.childNodes
.length
; i
++) {
177 var child
= content
.childNodes
[i
];
179 child
.className
= child
.className
.replace("Selected", "");
185 for (i
= 0; i
< content
.childNodes
.length
; i
++) {
186 var child
= content
.childNodes
[i
];
187 if (child
.id
== "feedCatHolder") {
188 parent
.debug(child
.id
);
189 var fcat
= child
.lastChild
;
190 for (j
= 0; j
< fcat
.childNodes
.length
; j
++) {
191 var feed
= fcat
.childNodes
[j
];
192 feed
.className
= feed
.className
.replace("Selected", "");
200 function cleanSelected(element
) {
201 var content
= document
.getElementById(element
);
203 for (i
= 0; i
< content
.rows
.length
; i
++) {
204 content
.rows
[i
].className
= content
.rows
[i
].className
.replace("Selected", "");
208 function getVisibleUnreadHeadlines() {
209 var content
= document
.getElementById("headlinesList");
211 var rows
= new Array();
213 for (i
= 0; i
< content
.rows
.length
; i
++) {
214 var row_id
= content
.rows
[i
].id
.replace("RROW-", "");
215 if (row_id
.length
> 0 && content
.rows
[i
].className
.match("Unread")) {
222 function getVisibleHeadlineIds() {
224 var content
= document
.getElementById("headlinesList");
226 var rows
= new Array();
228 for (i
= 0; i
< content
.rows
.length
; i
++) {
229 var row_id
= content
.rows
[i
].id
.replace("RROW-", "");
230 if (row_id
.length
> 0) {
237 function getFirstVisibleHeadlineId() {
238 var rows
= getVisibleHeadlineIds();
242 function getLastVisibleHeadlineId() {
243 var rows
= getVisibleHeadlineIds();
244 return rows
[rows
.length
-1];
247 function markHeadline(id
) {
248 var row
= document
.getElementById("RROW-" + id
);
250 var is_active
= false;
252 if (row
.className
.match("Active")) {
255 row
.className
= row
.className
.replace("Selected", "");
256 row
.className
= row
.className
.replace("Active", "");
257 row
.className
= row
.className
.replace("Insensitive", "");
260 row
.className
= row
.className
= "Active";
263 var check
= document
.getElementById("RCHK-" + id
);
266 check
.checked
= true;
269 row
.className
= row
.className
+ "Selected";
274 function getFeedIds() {
275 var content
= document
.getElementById("feedsList");
277 var rows
= new Array();
279 for (i
= 0; i
< content
.rows
.length
; i
++) {
280 var id
= content
.rows
[i
].id
.replace("FEEDR-", "");
289 function setCookie(name
, value
, lifetime
, path
, domain
, secure
) {
295 d
.setTime(lifetime
* 1000);
298 int_setCookie(name
, value
, d
, path
, domain
, secure
);
302 function int_setCookie(name
, value
, expires
, path
, domain
, secure
) {
303 document
.cookie
= name
+ "=" + escape(value
) +
304 ((expires
) ? "; expires=" + expires
.toGMTString() : "") +
305 ((path
) ? "; path=" + path
: "") +
306 ((domain
) ? "; domain=" + domain
: "") +
307 ((secure
) ? "; secure" : "");
310 function delCookie(name
, path
, domain
) {
311 if (getCookie(name
)) {
312 document
.cookie
= name
+ "=" +
313 ((path
) ? ";path=" + path
: "") +
314 ((domain
) ? ";domain=" + domain
: "" ) +
315 ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
320 function getCookie(name
) {
322 var dc
= document
.cookie
;
323 var prefix
= name
+ "=";
324 var begin
= dc
.indexOf("; " + prefix
);
326 begin
= dc
.indexOf(prefix
);
327 if (begin
!= 0) return null;
332 var end
= document
.cookie
.indexOf(";", begin
);
336 return unescape(dc
.substring(begin
+ prefix
.length
, end
));
339 function disableContainerChildren(id
, disable
, doc
) {
341 if (!doc
) doc
= document
;
343 var container
= doc
.getElementById(id
);
345 for (var i
= 0; i
< container
.childNodes
.length
; i
++) {
346 var child
= container
.childNodes
[i
];
349 child
.disabled
= disable
;
355 if (child
.className
&& child
.className
.match("button")) {
356 child
.className
= "disabledButton";
359 if (child
.className
&& child
.className
.match("disabledButton")) {
360 child
.className
= "button";
367 function gotoPreferences() {
368 document
.location
.href
= "prefs.php";
371 function gotoMain() {
372 document
.location
.href
= "tt-rss.php";
375 function gotoExportOpml() {
376 document
.location
.href
= "opml.php?op=Export";
379 function getActiveFeedId() {
380 return getCookie("ttrss_vf_actfeed");
383 function setActiveFeedId(id
) {
384 return setCookie("ttrss_vf_actfeed", id
);
387 var xmlhttp_rpc
= false;
390 /*@if (@_jscript_version >= 5)
391 // JScript gives us Conditional compilation, we can cope with old IE versions.
392 // and security blocked creation of the objects.
394 xmlhttp_rpc = new ActiveXObject("Msxml2.XMLHTTP");
397 xmlhttp_rpc = new ActiveXObject("Microsoft.XMLHTTP");
404 if (!xmlhttp_rpc
&& typeof XMLHttpRequest
!='undefined') {
405 xmlhttp_rpc
= new XMLHttpRequest();
408 function parse_counters(reply
, f_document
, title_obj
, scheduled_call
) {
410 for (var l
= 0; l
< reply
.childNodes
.length
; l
++) {
411 if (!reply
.childNodes
[l
] ||
412 typeof(reply
.childNodes
[l
].getAttribute
) == "undefined") {
413 // where did this come from?
417 var id
= reply
.childNodes
[l
].getAttribute("id");
418 var t
= reply
.childNodes
[l
].getAttribute("type");
419 var ctr
= reply
.childNodes
[l
].getAttribute("counter");
420 var error
= reply
.childNodes
[l
].getAttribute("error");
421 var has_img
= reply
.childNodes
[l
].getAttribute("hi");
422 var updated
= reply
.childNodes
[l
].getAttribute("updated");
424 if (id
== "global-unread") {
425 title_obj
.global_unread
= ctr
;
426 title_obj
.updateTitle();
430 if (t
== "category") {
431 var catctr
= f_document
.getElementById("FCATCTR-" + id
);
433 catctr
.innerHTML
= "(" + ctr
+ " unread)";
438 var feedctr
= f_document
.getElementById("FEEDCTR-" + id
);
439 var feedu
= f_document
.getElementById("FEEDU-" + id
);
440 var feedr
= f_document
.getElementById("FEEDR-" + id
);
441 var feed_img
= f_document
.getElementById("FIMG-" + id
);
442 var feedlink
= f_document
.getElementById("FEEDL-" + id
);
444 if (updated
&& feedlink
) {
446 feedlink
.title
= "Error: " + error
+ " (" + updated
+ ")";
448 feedlink
.title
= "Updated: " + updated
;
452 if (feedctr
&& feedu
&& feedr
) {
454 if (feedu
.innerHTML
!= ctr
&& id
== getActiveFeedId() && scheduled_call
) {
455 var hf
= title_obj
.parent
.frames
["headlines-frame"];
456 hf
.location
.reload(true);
459 feedu
.innerHTML
= ctr
;
462 feedr
.className
= feedr
.className
.replace("feed", "error");
464 feedr
.className
= feedr
.className
.replace("error", "feed");
468 feedctr
.className
= "odd";
469 if (!feedr
.className
.match("Unread")) {
470 var is_selected
= feedr
.className
.match("Selected");
472 feedr
.className
= feedr
.className
.replace("Selected", "");
473 feedr
.className
= feedr
.className
.replace("Unread", "");
475 feedr
.className
= feedr
.className
+ "Unread";
478 feedr
.className
= feedr
.className
+ "Selected";
483 feedctr
.className
= "invisible";
484 feedr
.className
= feedr
.className
.replace("Unread", "");
489 exception_error("parse_counters", e
);
493 // this one is called from feedlist context
494 // thus title_obj passed to parse_counters is parent (e.g. main ttrss window)
496 function all_counters_callback() {
497 if (xmlhttp_rpc
.readyState
== 4) {
499 if (!xmlhttp_rpc
.responseXML
|| !xmlhttp_rpc
.responseXML
.firstChild
) {
500 notify("[all_counters_callback] backend did not return valid XML");
504 if (!parent
.frames
["feeds-frame"]) {
505 notify("[all_counters_callback] no parent feeds-frame");
509 var reply
= xmlhttp_rpc
.responseXML
.firstChild
;
510 var f_document
= parent
.frames
["feeds-frame"].document
;
512 parse_counters(reply
, f_document
, parent
);
515 exception_error("all_counters_callback", e
);
520 function update_all_counters(feed
) {
521 if (xmlhttp_ready(xmlhttp_rpc
)) {
522 var query
= "backend.php?op=rpc&subop=getAllCounters";
525 query
= query
+ "&aid=" + feed
;
528 xmlhttp_rpc
.open("GET", query
, true);
529 xmlhttp_rpc
.onreadystatechange
=all_counters_callback
;
530 xmlhttp_rpc
.send(null);
534 function popupHelp(tid
) {
535 var w
= window
.open("backend.php?op=help&tid=" + tid
,
537 "menubar=no,location=no,resizable=yes,scrollbars=yes,status=no");
540 /** * @(#)isNumeric.js * * Copyright (c) 2000 by Sundar Dorai-Raj
541 * * @author Sundar Dorai-Raj
542 * * Email: sdoraira@vt.edu
543 * * This program is free software; you can redistribute it and/or
544 * * modify it under the terms of the GNU General Public License
545 * * as published by the Free Software Foundation; either version 2
546 * * of the License, or (at your option) any later version,
547 * * provided that any use properly credits the author.
548 * * This program is distributed in the hope that it will be useful,
549 * * but WITHOUT ANY WARRANTY; without even the implied warranty of
550 * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
551 * * GNU General Public License for more details at http://www.gnu.org * * */
553 var numbers
=".0123456789";
554 function isNumeric(x
) {
555 // is x a String or a character?
557 // remove negative sign
559 for(j
=0;j
<x
.length
;j
++) {
560 // call isNumeric recursively for each character
561 number
=isNumeric(x
.substring(j
,j
+1));
562 if(!number
) return number
;
567 // if x is number return true
568 if(numbers
.indexOf(x
)>=0) return true;
574 function hideOrShowFeeds(doc
, hide
) {
576 if (!doc
.styleSheets
) return;
578 var css_rules
= doc
.styleSheets
[0].cssRules
;
580 if (!css_rules
|| !css_rules
.length
) return;
582 for (i
= 0; i
< css_rules
.length
; i
++) {
583 var rule
= css_rules
[i
];
585 if (rule
.selectorText
== "ul.feedList li.feed") {
587 rule
.style
.display
= "block";
589 rule
.style
.display
= "none";
597 function selectTableRow(r
, do_select
) {
598 r
.className
= r
.className
.replace("Selected", "");
601 r
.className
= r
.className
+ "Selected";
605 function selectTableRowById(elem_id
, check_id
, do_select
) {
609 var row
= document
.getElementById(elem_id
);
612 selectTableRow(row
, do_select
);
615 var check
= document
.getElementById(check_id
);
618 check
.checked
= do_select
;
621 exception_error("selectTableRowById", e
);
625 function selectTableRowsByIdPrefix(content_id
, prefix
, check_prefix
, do_select
,
626 classcheck
, reset_others
) {
628 var content
= document
.getElementById(content_id
);
631 alert("[selectTableRows] Element " + content_id
+ " not found.");
635 for (i
= 0; i
< content
.rows
.length
; i
++) {
636 if (!classcheck
|| content
.rows
[i
].className
.match(classcheck
)) {
638 if (content
.rows
[i
].id
.match(prefix
)) {
639 selectTableRow(content
.rows
[i
], do_select
);
641 var row_id
= content
.rows
[i
].id
.replace(prefix
, "");
642 var check
= document
.getElementById(check_prefix
+ row_id
);
645 check
.checked
= do_select
;
647 } else if (reset_others
) {
648 selectTableRow(content
.rows
[i
], false);
650 var row_id
= content
.rows
[i
].id
.replace(prefix
, "");
651 var check
= document
.getElementById(check_prefix
+ row_id
);
654 check
.checked
= false;
658 } else if (reset_others
) {
659 selectTableRow(content
.rows
[i
], false);
661 var row_id
= content
.rows
[i
].id
.replace(prefix
, "");
662 var check
= document
.getElementById(check_prefix
+ row_id
);
665 check
.checked
= false;
672 function getSelectedTableRowIds(content_id
, prefix
) {
674 var content
= document
.getElementById(content_id
);
677 alert("[getSelectedTableRowIds] Element " + content_id
+ " not found.");
681 var sel_rows
= new Array();
683 for (i
= 0; i
< content
.rows
.length
; i
++) {
684 if (content
.rows
[i
].id
.match(prefix
) &&
685 content
.rows
[i
].className
.match("Selected")) {
687 var row_id
= content
.rows
[i
].id
.replace(prefix
+ "-", "");
688 sel_rows
.push(row_id
);
696 function toggleSelectRowById(sender
, id
) {
697 var row
= document
.getElementById(id
);
699 if (sender
.checked
) {
700 if (!row
.className
.match("Selected")) {
701 row
.className
= row
.className
+ "Selected";
704 if (row
.className
.match("Selected")) {
705 row
.className
= row
.className
.replace("Selected", "");
710 function toggleSelectListRow(sender
) {
711 var parent_row
= sender
.parentNode
;
713 if (sender
.checked
) {
714 if (!parent_row
.className
.match("Selected")) {
715 parent_row
.className
= parent_row
.className
+ "Selected";
718 if (parent_row
.className
.match("Selected")) {
719 parent_row
.className
= parent_row
.className
.replace("Selected", "");
725 function toggleSelectRow(sender
) {
726 var parent_row
= sender
.parentNode
.parentNode
;
728 if (sender
.checked
) {
729 if (!parent_row
.className
.match("Selected")) {
730 parent_row
.className
= parent_row
.className
+ "Selected";
733 if (parent_row
.className
.match("Selected")) {
734 parent_row
.className
= parent_row
.className
.replace("Selected", "");
739 function openExternalUrl(url
) {
740 var w
= window
.open(url
);
743 function getRelativeFeedId(list
, id
, direction
, unread_only
) {
745 if (direction
== "next") {
746 for (i
= 0; i
< list
.childNodes
.length
; i
++) {
747 var child
= list
.childNodes
[i
];
748 if (child
.id
&& child
.id
== "feedCatHolder") {
749 if (child
.lastChild
) {
750 var cr
= getRelativeFeedId(child
.firstChild
, id
, direction
);
753 } else if (child
.id
&& child
.id
.match("FEEDR-")) {
754 return child
.id
.replace('FEEDR-', '');
759 // FIXME select last feed doesn't work when only unread feeds are visible
761 if (direction
== "prev") {
762 for (i
= list
.childNodes
.length
-1; i
>= 0; i
--) {
763 var child
= list
.childNodes
[i
];
764 if (child
.id
== "feedCatHolder") {
765 if (child
.firstChild
) {
766 var cr
= getRelativeFeedId(child
.firstChild
, id
, direction
);
769 } else if (child
.id
.match("FEEDR-")) {
771 if (getCookie("ttrss_vf_hreadf") == 1) {
772 if (child
.className
!= "feed") {
773 alert(child
.className
);
774 return child
.id
.replace('FEEDR-', '');
777 return child
.id
.replace('FEEDR-', '');
784 var feed
= list
.ownerDocument
.getElementById("FEEDR-" + getActiveFeedId());
786 if (getCookie("ttrss_vf_hreadf") == 1) {
790 if (direction
== "next") {
800 } else if (e
.parentNode
.parentNode
.nextSibling
) {
802 var this_cat
= e
.parentNode
.parentNode
;
806 if (this_cat
&& this_cat
.nextSibling
) {
807 while (!e
&& this_cat
.nextSibling
) {
808 this_cat
= this_cat
.nextSibling
;
809 if (this_cat
.id
== "feedCatHolder") {
810 e
= this_cat
.firstChild
.firstChild
;
820 if (!unread_only
|| (unread_only
&& e
.className
!= "feed" &&
821 e
.className
!= "error")) {
822 return e
.id
.replace("FEEDR-", "");
827 } else if (direction
== "prev") {
833 if (e
.previousSibling
) {
835 e
= e
.previousSibling
;
837 } else if (e
.parentNode
.parentNode
.previousSibling
) {
839 var this_cat
= e
.parentNode
.parentNode
;
843 if (this_cat
&& this_cat
.previousSibling
) {
844 while (!e
&& this_cat
.previousSibling
) {
845 this_cat
= this_cat
.previousSibling
;
846 if (this_cat
.id
== "feedCatHolder") {
847 e
= this_cat
.firstChild
.lastChild
;
857 if (!unread_only
|| (unread_only
&& e
.className
!= "feed" &&
858 e
.className
!= "error")) {
859 return e
.id
.replace("FEEDR-", "");
867 function showBlockElement(id
) {
868 var elem
= document
.getElementById(id
);
871 elem
.style
.display
= "block";
873 alert("[showBlockElement] can't find element with id " + id
);
877 function hideParentElement(e
) {
878 e
.parentNode
.style
.display
= "none";
881 function dropboxSelect(e
, v
) {
882 for (i
= 0; i
< e
.length
; i
++) {
883 if (e
[i
].value
== v
) {
890 // originally stolen from http://www.11tmr.com/11tmr.nsf/d6plinks/MWHE-695L9Z
891 // bugfixed just a little bit :-)
892 function getURLParam(strParamName
){
894 var strHref
= window
.location
.href
;
896 if (strHref
.indexOf("#") == strHref
.length
-1) {
897 strHref
= strHref
.substring(0, strHref
.length
-1);
900 if ( strHref
.indexOf("?") > -1 ){
901 var strQueryString
= strHref
.substr(strHref
.indexOf("?"));
902 var aQueryString
= strQueryString
.split("&");
903 for ( var iParam
= 0; iParam
< aQueryString
.length
; iParam
++ ){
904 if (aQueryString
[iParam
].indexOf(strParamName
+ "=") > -1 ){
905 var aParam
= aQueryString
[iParam
].split("=");
906 strReturn
= aParam
[1];
914 function leading_zero(p
) {
916 if (s
.length
== 1) s
= "0" + s
;
920 function center_element(e
) {
923 var c_width
= document
.body
.clientWidth
;
924 var c_height
= document
.body
.clientHeight
;
926 var c_scroll
= document
.body
.scrollTop
;
928 var e_width
= e
.clientWidth
;
929 var e_height
= e
.clientHeight
;
931 var set_y
= (c_height
/ 2) + c_scroll
- (e_height
/ 2);
932 var set_x
= (c_width
/ 2) - (e_width
/ 2);
934 e
.style
.top
= set_y
+ "px";
935 e
.style
.left
= set_x
+ "px";
937 exception_error("center_element", e
);
941 function closeInfoBox() {
942 var box
= document
.getElementById('infoBox');
943 var shadow
= document
.getElementById('infoBoxShadow');
946 shadow
.style
.display
= "none";
948 box
.style
.display
= "none";
955 function displayDlg(id
, param
) {
957 if (!xmlhttp_ready(xmlhttp
)) {
964 xmlhttp
.open("GET", "backend.php?op=dlg&id=" +
965 param_escape(id
) + "¶m=" + param_escape(param
), true);
966 xmlhttp
.onreadystatechange
=infobox_callback
;
973 function infobox_submit_callback() {
974 if (xmlhttp
.readyState
== 4) {
975 notify(xmlhttp
.responseText
);
978 // called from prefs, reload tab
980 selectTab(active_tab
, false);
985 function infobox_callback() {
986 if (xmlhttp
.readyState
== 4) {
987 var box
= document
.getElementById('infoBox');
988 var shadow
= document
.getElementById('infoBoxShadow');
990 box
.innerHTML
=xmlhttp
.responseText
;
992 shadow
.style
.display
= "block";
994 box
.style
.display
= "block";
1000 function qaddFilter() {
1002 if (!xmlhttp_ready(xmlhttp
)) {
1003 printLockingError();
1007 var regexp
= document
.getElementById("fadd_regexp");
1008 var match
= document
.getElementById("fadd_match");
1009 var feed
= document
.getElementById("fadd_feed");
1010 var action
= document
.getElementById("fadd_action");
1012 if (regexp
.value
.length
== 0) {
1013 alert("Missing filter expression.");
1015 notify("Adding filter...");
1017 var v_match
= match
[match
.selectedIndex
].text
;
1018 var feed_id
= feed
[feed
.selectedIndex
].id
;
1019 var action_id
= action
[action
.selectedIndex
].id
;
1021 xmlhttp
.open("GET", "backend.php?op=pref-filters&quiet=1&subop=add®exp=" +
1022 param_escape(regexp
.value
) + "&match=" + v_match
+
1023 "&fid=" + param_escape(feed_id
) + "&aid=" + param_escape(action_id
), true);
1025 xmlhttp
.onreadystatechange
=infobox_submit_callback
;
1033 function toggleSubmitNotEmpty(e
, submit_id
) {
1035 document
.getElementById(submit_id
).disabled
= (e
.value
== "")
1037 exception_error("toggleSubmitNotEmpty", e
);