From 05acc0d65376d842b259dd657df54b3e984cc312 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 21 Nov 2010 11:55:28 +0300 Subject: rework batch feed editor --- modules/pref-feeds.php | 85 +++++++++++++++++++++----------------------------- 1 file changed, 36 insertions(+), 49 deletions(-) (limited to 'modules') diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 97ff89642..0927b4837 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -2,7 +2,7 @@ function batch_edit_cbox($elem, $label = false) { print ""; + onchange=\"dijit.byId('feedEditDlg').toggleField(this, '$elem', '$label')\">"; } function module_pref_feeds($link) { @@ -472,25 +472,19 @@ if ($subop == "editfeeds") { $feed_ids = db_escape_string($_REQUEST["ids"]); - - header("Content-Type: text/xml"); - print ""; - print "".__('Multiple Feed Editor').""; - print ""; - print ""; - print ""; - print ""; + print ""; + print ""; + print ""; print "
".__("Feed")."
"; print "
"; /* Title */ - print ""; + print ""; batch_edit_cbox("title"); @@ -499,7 +493,8 @@ print "
"; print __('URL:') . " "; - print ""; batch_edit_cbox("feed_url"); @@ -512,7 +507,8 @@ print __('Place in category:') . " "; - print_feed_cat_select($link, "cat_id", $cat_id, "disabled"); + print_feed_cat_select($link, "cat_id", $cat_id, + 'disabled="1" dojoType="dijit.form.Select"'); batch_edit_cbox("cat_id"); @@ -526,7 +522,7 @@ /* Update Interval */ print_select_hash("update_interval", $update_interval, $update_intervals, - "disabled"); + 'disabled="1" dojoType="dijit.form.Select"'); batch_edit_cbox("update_interval"); @@ -534,19 +530,19 @@ print " " . __('using') . " "; print_select_hash("update_method", $update_method, $update_methods, - "disabled"); + 'disabled="1" dojoType="dijit.form.Select"'); batch_edit_cbox("update_method"); /* Purge intl */ - if (FORCE_ARTICLE_PURGE != 0) { + if (FORCE_ARTICLE_PURGE == 0) { print "
"; print __('Article purging:') . " "; print_select_hash("purge_interval", $purge_interval, $purge_intervals, - "disabled"); + 'disabled="1" dojoType="dijit.form.Select"'); batch_edit_cbox("purge_interval"); } @@ -555,16 +551,14 @@ print "
".__("Authentication")."
"; print "
"; - print __('Login:') . " "; - print ""; batch_edit_cbox("auth_login"); - print " " . __("Password:") . " "; - - print ""; batch_edit_cbox("auth_pass"); @@ -573,55 +567,48 @@ print "
".__("Options")."
"; print "
"; - print "
"; - - print " "; + print " "; print " "; batch_edit_cbox("private", "private_l"); - print "
 "; + print "
 "; print " "; batch_edit_cbox("rtl_content", "rtl_content_l"); - print "
 "; + dojoType=\"dijit.form.CheckBox\"> "; print " "; batch_edit_cbox("include_in_digest", "include_in_digest_l"); - print "
 "; + dojoType=\"dijit.form.CheckBox\"> "; print " "; batch_edit_cbox("always_display_enclosures", "always_display_enclosures_l"); - print "
 
"; print "
"; - print ""; - print "
+ onclick=\"return dijit.byId('feedEditDlg').execute()\" + value=\"".__('Save')."\"> + onclick=\"return dijit.byId('feedEditDlg').hide()\" + value=\"".__('Cancel')."\">
"; - - print "]]>"; - + return; } @@ -763,7 +750,7 @@ db_query($link, "COMMIT"); } - + return; } if ($subop == "remove") { -- cgit v1.2.3-54-g00ecf