]>
git.wh0rd.org - tt-rss.git/blob - prefs.js
3 var active_feed
= false;
4 var active_feed_cat
= false;
5 var active_filter
= false;
6 var active_label
= false;
7 var active_user
= false;
9 var active_tab
= false;
12 /*@if (@_jscript_version >= 5)
13 // JScript gives us Conditional compilation, we can cope with old IE versions.
14 // and security blocked creation of the objects.
16 xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
19 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
26 if (!xmlhttp
&& typeof XMLHttpRequest
!='undefined') {
27 xmlhttp
= new XMLHttpRequest();
30 function feedlist_callback() {
31 if (xmlhttp
.readyState
== 4) {
32 var container
= document
.getElementById('prefContent');
33 container
.innerHTML
=xmlhttp
.responseText
;
35 var row
= document
.getElementById("FEEDR-" + active_feed
);
37 if (!row
.className
.match("Selected")) {
38 row
.className
= row
.className
+ "Selected";
41 var checkbox
= document
.getElementById("FRCHK-" + active_feed
);
43 checkbox
.checked
= true;
50 function filterlist_callback() {
51 var container
= document
.getElementById('prefContent');
52 if (xmlhttp
.readyState
== 4) {
54 container
.innerHTML
=xmlhttp
.responseText
;
57 var row
= document
.getElementById("FILRR-" + active_filter
);
59 if (!row
.className
.match("Selected")) {
60 row
.className
= row
.className
+ "Selected";
63 var checkbox
= document
.getElementById("FICHK-" + active_filter
);
66 checkbox
.checked
= true;
73 function labellist_callback() {
74 var container
= document
.getElementById('prefContent');
75 if (xmlhttp
.readyState
== 4) {
76 container
.innerHTML
=xmlhttp
.responseText
;
79 var row
= document
.getElementById("LILRR-" + active_label
);
81 if (!row
.className
.match("Selected")) {
82 row
.className
= row
.className
+ "Selected";
85 var checkbox
= document
.getElementById("LICHK-" + active_label
);
88 checkbox
.checked
= true;
95 function userlist_callback() {
96 var container
= document
.getElementById('prefContent');
97 if (xmlhttp
.readyState
== 4) {
98 container
.innerHTML
=xmlhttp
.responseText
;
101 var row
= document
.getElementById("UMRR-" + active_user
);
103 if (!row
.className
.match("Selected")) {
104 row
.className
= row
.className
+ "Selected";
107 var checkbox
= document
.getElementById("UMCHK-" + active_user
);
110 checkbox
.checked
= true;
118 function infobox_callback() {
119 if (xmlhttp
.readyState
== 4) {
120 var box
= document
.getElementById('infoBox');
121 var shadow
= document
.getElementById('infoBoxShadow');
124 box
.innerHTML
=xmlhttp
.responseText
;
126 shadow
.style
.display
= "block";
128 box
.style
.display
= "block";
135 function prefslist_callback() {
136 var container
= document
.getElementById('prefContent');
137 if (xmlhttp
.readyState
== 4) {
139 container
.innerHTML
=xmlhttp
.responseText
;
145 function gethelp_callback() {
146 var container
= document
.getElementById('prefHelpBox');
147 if (xmlhttp
.readyState
== 4) {
149 container
.innerHTML
= xmlhttp
.responseText
;
150 container
.style
.display
= "block";
156 function notify_callback() {
157 var container
= document
.getElementById('notify');
158 if (xmlhttp
.readyState
== 4) {
159 container
.innerHTML
=xmlhttp
.responseText
;
163 function updateFeedList(sort_key
) {
165 if (!xmlhttp_ready(xmlhttp
)) {
170 // document.getElementById("prefContent").innerHTML = "Loading feeds, please wait...";
172 p_notify("Loading, please wait...");
174 var feed_search
= document
.getElementById("feed_search");
176 if (feed_search
) { search
= feed_search
.value
; }
178 xmlhttp
.open("GET", "backend.php?op=pref-feeds" +
179 "&sort=" + param_escape(sort_key
) +
180 "&search=" + param_escape(search
), true);
181 xmlhttp
.onreadystatechange
=feedlist_callback
;
186 function updateUsersList() {
188 if (!xmlhttp_ready(xmlhttp
)) {
193 // document.getElementById("prefContent").innerHTML = "Loading feeds, please wait...";
195 p_notify("Loading, please wait...");
197 xmlhttp
.open("GET", "backend.php?op=pref-users", true);
198 xmlhttp
.onreadystatechange
=userlist_callback
;
203 function addLabel() {
205 if (!xmlhttp_ready(xmlhttp
)) {
210 var sqlexp
= document
.getElementById("ladd_expr");
212 if (sqlexp
.value
.length
== 0) {
213 notify("Missing SQL expression.");
215 notify("Adding label...");
217 xmlhttp
.open("GET", "backend.php?op=pref-labels&subop=add&exp=" +
218 param_escape(sqlexp
.value
), true);
220 xmlhttp
.onreadystatechange
=labellist_callback
;
228 function addFilter() {
230 if (!xmlhttp_ready(xmlhttp
)) {
235 var regexp
= document
.getElementById("fadd_regexp");
236 var match
= document
.getElementById("fadd_match");
237 var feed
= document
.getElementById("fadd_feed");
238 var action
= document
.getElementById("fadd_action");
240 if (regexp
.value
.length
== 0) {
241 notify("Missing filter expression.");
243 notify("Adding filter...");
245 var v_match
= match
[match
.selectedIndex
].text
;
246 var feed_id
= feed
[feed
.selectedIndex
].id
;
247 var action_id
= action
[action
.selectedIndex
].id
;
249 xmlhttp
.open("GET", "backend.php?op=pref-filters&subop=add®exp=" +
250 param_escape(regexp
.value
) + "&match=" + v_match
+
251 "&fid=" + param_escape(feed_id
) + "&aid=" + param_escape(action_id
), true);
253 xmlhttp
.onreadystatechange
=filterlist_callback
;
263 if (!xmlhttp_ready(xmlhttp
)) {
268 var link
= document
.getElementById("fadd_link");
270 if (link
.value
.length
== 0) {
271 notify("Missing feed URL.");
273 notify("Adding feed...");
275 xmlhttp
.open("GET", "backend.php?op=pref-feeds&subop=add&link=" +
276 param_escape(link
.value
), true);
277 xmlhttp
.onreadystatechange
=feedlist_callback
;
286 function addFeedCat() {
288 if (!xmlhttp_ready(xmlhttp
)) {
293 var cat
= document
.getElementById("fadd_cat");
295 if (cat
.value
.length
== 0) {
296 notify("Missing feed category.");
298 notify("Adding feed category...");
300 xmlhttp
.open("GET", "backend.php?op=pref-feeds&subop=addCat&cat=" +
301 param_escape(cat
.value
), true);
302 xmlhttp
.onreadystatechange
=feedlist_callback
;
312 if (!xmlhttp_ready(xmlhttp
)) {
317 var sqlexp
= document
.getElementById("uadd_box");
319 if (sqlexp
.value
.length
== 0) {
320 notify("Missing user login.");
322 notify("Adding user...");
324 xmlhttp
.open("GET", "backend.php?op=pref-users&subop=add&login=" +
325 param_escape(sqlexp
.value
), true);
327 xmlhttp
.onreadystatechange
=userlist_callback
;
335 function editLabel(id
) {
337 if (!xmlhttp_ready(xmlhttp
)) {
344 xmlhttp
.open("GET", "backend.php?op=pref-labels&subop=edit&id=" +
345 param_escape(id
), true);
346 xmlhttp
.onreadystatechange
=labellist_callback
;
351 function editUser(id
) {
353 if (!xmlhttp_ready(xmlhttp
)) {
360 xmlhttp
.open("GET", "backend.php?op=pref-users&subop=edit&id=" +
361 param_escape(id
), true);
362 xmlhttp
.onreadystatechange
=userlist_callback
;
367 function editFilter(id
) {
369 if (!xmlhttp_ready(xmlhttp
)) {
376 xmlhttp
.open("GET", "backend.php?op=pref-filters&subop=edit&id=" +
377 param_escape(id
), true);
378 xmlhttp
.onreadystatechange
=filterlist_callback
;
383 function editFeed(feed
) {
385 // notify("Editing feed...");
387 if (!xmlhttp_ready(xmlhttp
)) {
394 /* xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=edit&id=" +
395 param_escape(feed), true);
396 xmlhttp.onreadystatechange=feedlist_callback;
397 xmlhttp.send(null); */
399 selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-', 'FRCHK-', false);
400 selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-'+feed
, 'FRCHK-'+feed
, true);
402 xmlhttp
.open("GET", "backend.php?op=pref-feeds&subop=editfeed&id=" +
403 param_escape(active_feed
), true);
405 xmlhttp
.onreadystatechange
=infobox_callback
;
410 function editFeedCat(cat
) {
412 if (!xmlhttp_ready(xmlhttp
)) {
417 active_feed_cat
= cat
;
419 xmlhttp
.open("GET", "backend.php?op=pref-feeds&subop=editCat&id=" +
420 param_escape(cat
), true);
421 xmlhttp
.onreadystatechange
=feedlist_callback
;
426 function getSelectedLabels() {
427 return getSelectedTableRowIds("prefLabelList", "LILRR");
430 function getSelectedUsers() {
431 return getSelectedTableRowIds("prefUserList", "UMRR");
434 function getSelectedFeeds() {
435 return getSelectedTableRowIds("prefFeedList", "FEEDR");
438 function getSelectedFilters() {
439 return getSelectedTableRowIds("prefFilterList", "FILRR");
442 function getSelectedFeedCats() {
443 return getSelectedTableRowIds("prefFeedCatList", "FCATR");
447 function readSelectedFeeds(read
) {
449 if (!xmlhttp_ready(xmlhttp
)) {
454 var sel_rows
= getSelectedFeeds();
456 if (sel_rows
.length
> 0) {
464 notify("Marking selected feeds as " + op
+ "...");
466 xmlhttp
.open("GET", "backend.php?op=pref-rpc&subop=" + op
+ "&ids="+
467 param_escape(sel_rows
.toString()), true);
468 xmlhttp
.onreadystatechange
=notify_callback
;
473 notify("Please select some feeds first.");
478 function removeSelectedLabels() {
480 if (!xmlhttp_ready(xmlhttp
)) {
485 var sel_rows
= getSelectedLabels();
487 if (sel_rows
.length
> 0) {
489 notify("Removing selected labels...");
491 xmlhttp
.open("GET", "backend.php?op=pref-labels&subop=remove&ids="+
492 param_escape(sel_rows
.toString()), true);
493 xmlhttp
.onreadystatechange
=labellist_callback
;
497 notify("Please select some labels first.");
501 function removeSelectedUsers() {
503 if (!xmlhttp_ready(xmlhttp
)) {
508 var sel_rows
= getSelectedUsers();
510 if (sel_rows
.length
> 0) {
512 notify("Removing selected users...");
514 xmlhttp
.open("GET", "backend.php?op=pref-users&subop=remove&ids="+
515 param_escape(sel_rows
.toString()), true);
516 xmlhttp
.onreadystatechange
=userlist_callback
;
520 notify("Please select some labels first.");
524 function removeSelectedFilters() {
526 if (!xmlhttp_ready(xmlhttp
)) {
531 var sel_rows
= getSelectedFilters();
533 if (sel_rows
.length
> 0) {
535 notify("Removing selected filters...");
537 xmlhttp
.open("GET", "backend.php?op=pref-filters&subop=remove&ids="+
538 param_escape(sel_rows
.toString()), true);
539 xmlhttp
.onreadystatechange
=filterlist_callback
;
543 notify("Please select some filters first.");
548 function removeSelectedFeeds() {
550 if (!xmlhttp_ready(xmlhttp
)) {
555 var sel_rows
= getSelectedFeeds();
557 if (sel_rows
.length
> 0) {
559 notify("Removing selected feeds...");
561 xmlhttp
.open("GET", "backend.php?op=pref-feeds&subop=remove&ids="+
562 param_escape(sel_rows
.toString()), true);
563 xmlhttp
.onreadystatechange
=feedlist_callback
;
568 notify("Please select some feeds first.");
574 function removeSelectedFeedCats() {
576 if (!xmlhttp_ready(xmlhttp
)) {
581 var sel_rows
= getSelectedFeedCats();
583 if (sel_rows
.length
> 0) {
585 notify("Removing selected categories...");
587 xmlhttp
.open("GET", "backend.php?op=pref-feeds&subop=removeCats&ids="+
588 param_escape(sel_rows
.toString()), true);
589 xmlhttp
.onreadystatechange
=feedlist_callback
;
594 notify("Please select some feeds first.");
600 function feedEditCancel() {
602 if (!xmlhttp_ready(xmlhttp
)) {
609 notify("Operation cancelled.");
611 xmlhttp
.open("GET", "backend.php?op=pref-feeds", true);
612 xmlhttp
.onreadystatechange
=feedlist_callback
;
617 function feedCatEditCancel() {
619 if (!xmlhttp_ready(xmlhttp
)) {
624 active_feed_cat
= false;
626 notify("Operation cancelled.");
628 xmlhttp
.open("GET", "backend.php?op=pref-feeds", true);
629 xmlhttp
.onreadystatechange
=feedlist_callback
;
634 function feedEditSave() {
636 var feed
= active_feed
;
638 if (!xmlhttp_ready(xmlhttp
)) {
643 var link
= document
.getElementById("iedit_link").value
;
644 var title
= document
.getElementById("iedit_title").value
;
645 var upd_intl
= document
.getElementById("iedit_updintl").value
;
646 var purge_intl
= document
.getElementById("iedit_purgintl").value
;
647 var fcat
= document
.getElementById("iedit_fcat");
649 var fcat_id
= fcat
[fcat
.selectedIndex
].id
;
651 // notify("Saving feed.");
653 /* if (upd_intl < 0) {
654 notify("Update interval must be >= 0 (0 = default)");
658 if (purge_intl < 0) {
659 notify("Purge days must be >= 0 (0 = default)");
663 if (link
.length
== 0) {
664 notify("Feed link cannot be blank.");
668 if (title
.length
== 0) {
669 notify("Feed title cannot be blank.");
677 xmlhttp
.open("GET", "backend.php?op=pref-feeds&subop=editSave&id=" +
678 feed
+ "&l=" + param_escape(link
) + "&t=" + param_escape(title
) +
679 "&ui=" + param_escape(upd_intl
) + "&pi=" + param_escape(purge_intl
) +
680 "&catid=" + param_escape(fcat_id
), true);
681 xmlhttp
.onreadystatechange
=feedlist_callback
;
686 function labelTest() {
688 var sqlexp
= document
.getElementById("iedit_expr").value
;
689 var descr
= document
.getElementById("iedit_descr").value
;
691 xmlhttp
.open("GET", "backend.php?op=pref-labels&subop=test&expr=" +
692 param_escape(sqlexp
) + "&descr=" + param_escape(descr
), true);
694 xmlhttp
.onreadystatechange
=infobox_callback
;
699 function displayHelpInfobox(topic_id
) {
701 xmlhttp
.open("GET", "backend.php?op=help&tid=" +
702 param_escape(topic_id
) + "&noheaders=1", true);
704 xmlhttp
.onreadystatechange
=infobox_callback
;
709 function labelEditCancel() {
711 if (!xmlhttp_ready(xmlhttp
)) {
716 active_label
= false;
718 notify("Operation cancelled.");
720 xmlhttp
.open("GET", "backend.php?op=pref-labels", true);
721 xmlhttp
.onreadystatechange
=labellist_callback
;
726 function userEditCancel() {
728 if (!xmlhttp_ready(xmlhttp
)) {
735 notify("Operation cancelled.");
737 xmlhttp
.open("GET", "backend.php?op=pref-users", true);
738 xmlhttp
.onreadystatechange
=userlist_callback
;
743 function filterEditCancel() {
745 if (!xmlhttp_ready(xmlhttp
)) {
750 active_filter
= false;
752 notify("Operation cancelled.");
754 xmlhttp
.open("GET", "backend.php?op=pref-filters", true);
755 xmlhttp
.onreadystatechange
=filterlist_callback
;
760 function labelEditSave() {
762 var label
= active_label
;
764 if (!xmlhttp_ready(xmlhttp
)) {
769 var sqlexp
= document
.getElementById("iedit_expr").value
;
770 var descr
= document
.getElementById("iedit_descr").value
;
772 // notify("Saving label " + sqlexp + ": " + descr);
774 if (sqlexp
.length
== 0) {
775 notify("SQL expression cannot be blank.");
779 if (descr
.length
== 0) {
780 notify("Caption cannot be blank.");
786 active_label
= false;
788 xmlhttp
.open("GET", "backend.php?op=pref-labels&subop=editSave&id=" +
789 label
+ "&s=" + param_escape(sqlexp
) + "&d=" + param_escape(descr
),
792 xmlhttp
.onreadystatechange
=labellist_callback
;
797 function userEditSave() {
799 var user
= active_user
;
801 if (!xmlhttp_ready(xmlhttp
)) {
806 var login
= document
.getElementById("iedit_ulogin").value
;
807 var level
= document
.getElementById("iedit_ulevel").value
;
809 if (login
.length
== 0) {
810 notify("Login cannot be blank.");
814 if (level
.length
== 0) {
815 notify("User level cannot be blank.");
823 xmlhttp
.open("GET", "backend.php?op=pref-users&subop=editSave&id=" +
824 user
+ "&l=" + param_escape(login
) + "&al=" + param_escape(level
),
827 xmlhttp
.onreadystatechange
=userlist_callback
;
833 function filterEditSave() {
835 var filter
= active_filter
;
837 if (!xmlhttp_ready(xmlhttp
)) {
842 var regexp
= document
.getElementById("iedit_regexp").value
;
843 var descr
= document
.getElementById("iedit_descr").value
;
844 var match
= document
.getElementById("iedit_match");
846 var v_match
= match
[match
.selectedIndex
].text
;
848 var feed
= document
.getElementById("iedit_feed");
849 var feed_id
= feed
[feed
.selectedIndex
].id
;
851 var action
= document
.getElementById("iedit_filter_action");
852 var action_id
= action
[action
.selectedIndex
].id
;
854 // notify("Saving filter " + filter + ": " + regexp + ", " + descr + ", " + match);
856 if (regexp
.length
== 0) {
857 notify("Filter expression cannot be blank.");
861 active_filter
= false;
863 xmlhttp
.open("GET", "backend.php?op=pref-filters&subop=editSave&id=" +
864 filter
+ "&r=" + param_escape(regexp
) + "&d=" + param_escape(descr
) +
865 "&m=" + param_escape(v_match
) + "&fid=" + param_escape(feed_id
) +
866 "&aid=" + param_escape(action_id
), true);
870 xmlhttp
.onreadystatechange
=filterlist_callback
;
875 function editSelectedLabel() {
876 var rows
= getSelectedLabels();
878 if (rows
.length
== 0) {
879 notify("No labels are selected.");
883 if (rows
.length
> 1) {
884 notify("Please select one label.");
894 function editSelectedUser() {
895 var rows
= getSelectedUsers();
897 if (rows
.length
== 0) {
898 notify("No users are selected.");
902 if (rows
.length
> 1) {
903 notify("Please select one user.");
912 function resetSelectedUserPass() {
913 var rows
= getSelectedUsers();
915 if (rows
.length
== 0) {
916 notify("No users are selected.");
920 if (rows
.length
> 1) {
921 notify("Please select one user.");
925 notify("Resetting password for selected user...");
929 xmlhttp
.open("GET", "backend.php?op=pref-users&subop=resetPass&id=" +
930 param_escape(id
), true);
931 xmlhttp
.onreadystatechange
=userlist_callback
;
936 function selectedUserDetails() {
938 if (!xmlhttp_ready(xmlhttp
)) {
943 var rows
= getSelectedUsers();
945 if (rows
.length
== 0) {
946 notify("No users are selected.");
950 if (rows
.length
> 1) {
951 notify("Please select one user.");
959 xmlhttp
.open("GET", "backend.php?op=user-details&id=" + id
, true);
960 xmlhttp
.onreadystatechange
=infobox_callback
;
965 function selectedFeedDetails() {
967 if (!xmlhttp_ready(xmlhttp
)) {
972 var rows
= getSelectedFeeds();
974 if (rows
.length
== 0) {
975 notify("No feeds are selected.");
979 if (rows
.length
> 1) {
980 notify("Please select one feed.");
988 xmlhttp
.open("GET", "backend.php?op=feed-details&id=" + id
, true);
989 xmlhttp
.onreadystatechange
=infobox_callback
;
994 function editSelectedFilter() {
995 var rows
= getSelectedFilters();
997 if (rows
.length
== 0) {
998 notify("No filters are selected.");
1002 if (rows
.length
> 1) {
1003 notify("Please select one filter.");
1009 editFilter(rows
[0]);
1014 function editSelectedFeed() {
1015 var rows
= getSelectedFeeds();
1017 if (rows
.length
== 0) {
1018 notify("No feeds are selected.");
1022 if (rows
.length
> 1) {
1023 notify("Please select one feed.");
1033 function editSelectedFeedCat() {
1034 var rows
= getSelectedFeedCats();
1036 if (rows
.length
== 0) {
1037 notify("No categories are selected.");
1041 if (rows
.length
> 1) {
1042 notify("Please select one category.");
1048 editFeedCat(rows
[0]);
1052 function localPiggieFunction(enable
) {
1054 piggie
.style
.display
= "block";
1056 notify("I loveded it!!!");
1058 piggie
.style
.display
= "none";
1063 function validateOpmlImport() {
1065 var opml_file
= document
.getElementById("opml_file");
1067 if (opml_file
.value
.length
== 0) {
1068 notify("Please select OPML file to upload.");
1075 function updateFilterList() {
1077 if (!xmlhttp_ready(xmlhttp
)) {
1078 printLockingError();
1082 // document.getElementById("prefContent").innerHTML = "Loading filters, please wait...";
1084 p_notify("Loading, please wait...");
1086 xmlhttp
.open("GET", "backend.php?op=pref-filters", true);
1087 xmlhttp
.onreadystatechange
=filterlist_callback
;
1092 function updateLabelList() {
1094 if (!xmlhttp_ready(xmlhttp
)) {
1095 printLockingError();
1099 p_notify("Loading, please wait...");
1101 // document.getElementById("prefContent").innerHTML = "Loading labels, please wait...";
1103 xmlhttp
.open("GET", "backend.php?op=pref-labels", true);
1104 xmlhttp
.onreadystatechange
=labellist_callback
;
1108 function updatePrefsList() {
1110 if (!xmlhttp_ready(xmlhttp
)) {
1111 printLockingError();
1115 p_notify("Loading, please wait...");
1117 xmlhttp
.open("GET", "backend.php?op=pref-prefs", true);
1118 xmlhttp
.onreadystatechange
=prefslist_callback
;
1123 function selectTab(id
) {
1125 if (!xmlhttp_ready(xmlhttp
)) {
1126 printLockingError();
1130 if (id
== "feedConfig") {
1132 } else if (id
== "filterConfig") {
1134 } else if (id
== "labelConfig") {
1136 } else if (id
== "genConfig") {
1138 } else if (id
== "userConfig") {
1142 var tab
= document
.getElementById(active_tab
+ "Tab");
1145 if (tab
.className
.match("Selected")) {
1146 tab
.className
= "prefsTab";
1150 tab
= document
.getElementById(id
+ "Tab");
1153 if (!tab
.className
.match("Selected")) {
1154 tab
.className
= tab
.className
+ "Selected";
1168 document
.getElementById("prefContent").innerHTML
=
1169 "<b>Fatal error:</b> This program needs XmlHttpRequest " +
1170 "to function properly. Your browser doesn't seem to support it.";
1174 selectTab("genConfig");
1176 document
.onkeydown
= hotkey_handler
;
1179 exception_error("init", e
);
1183 function closeInfoBox() {
1184 var box
= document
.getElementById('infoBox');
1185 var shadow
= document
.getElementById('infoBoxShadow');
1188 shadow
.style
.display
= "none";
1190 box
.style
.display
= "none";
1194 function categorizeSelectedFeeds() {
1196 if (!xmlhttp_ready(xmlhttp
)) {
1197 printLockingError();
1201 var sel_rows
= getSelectedFeeds();
1203 var cat_sel
= document
.getElementById("sfeed_set_fcat");
1204 var cat_id
= cat_sel
[cat_sel
.selectedIndex
].id
;
1206 if (sel_rows
.length
> 0) {
1208 notify("Changing category of selected feeds...");
1210 xmlhttp
.open("GET", "backend.php?op=pref-feeds&subop=categorize&ids="+
1211 param_escape(sel_rows
.toString()) + "&cat_id=" + param_escape(cat_id
), true);
1212 xmlhttp
.onreadystatechange
=feedlist_callback
;
1217 notify("Please select some feeds first.");