From beb760d5166c2138f25e8a59d93604f712536061 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 18 Jan 2009 11:52:01 +0100 Subject: [PATCH] code cleanup --- functions.php | 30 ----------- modules/popup-dialog.php | 112 --------------------------------------- tt-rss.js | 50 ----------------- 3 files changed, 192 deletions(-) diff --git a/functions.php b/functions.php index 7eb8dd40..326fa74b 100644 --- a/functions.php +++ b/functions.php @@ -5792,36 +5792,6 @@ print ""; } - function print_label_dlg_common_examples() { - - print __("Match ") . " "; - -/* print ""; */ - - print ""; - - print ""; - - print " "; - } - function feed_has_icon($id) { return is_file(ICONS_DIR . "/$id.ico") && filesize(ICONS_DIR . "/$id.ico") > 0; } diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 21b5a1fd..d6ed6885 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -219,68 +219,6 @@ } -/* if ($id == "quickAddLabel") { - print "
".__('Create Label')."
"; - print "
"; - - print "
"; - - print ""; - print ""; - - print "
".__("Caption")."
"; - - print "
"; - - print ""; - print "
"; - - print "
".__("Match SQL")."
"; - - print "
"; - - print ""; - - print "
"; - - print_label_dlg_common_examples(); - - - print "
"; - - print "
"; - - print "
"; - - print "
"; - - print "
"; - print " "; - print "
"; - - print " - "; - - print " "; - - print ""; - - return; - } */ - if ($id == "quickAddFilter") { $active_feed_id = db_escape_string($_GET["param"]); @@ -293,8 +231,6 @@ print ""; print ""; print ""; - -// print "
Note: filter will only apply to new articles.
"; $result = db_query($link, "SELECT id,description FROM ttrss_filter_types ORDER BY description"); @@ -306,54 +242,6 @@ $filter_types[$line["id"]] = __($line["description"]); } -/* print ""; - - print " - "; - print ""; - - print ""; - - print ""; - - print ""; - - print ""; - - print ""; - - print "
".__('Match:').""; - - print "
".__('On field:').""; - - print_select_hash("filter_type", 1, $filter_types, "class=\"_iedit\""); - - print "
".__('Feed:').""; - - print_feed_select($link, "feed_id", $active_feed_id); - - print "
".__('Action:').""; - - print "
".__('Params:')."
".__('Options:').""; - - print " -
"; - - print ""; */ - print "
".__("Match")."
"; print "
"; diff --git a/tt-rss.js b/tt-rss.js index 8dda2772..fba1158f 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -856,34 +856,6 @@ function feedEditSave() { } } -function labelEditCancel() { - closeInfoBox(); - return false; -} - -function labelEditSave() { - - try { - - closeInfoBox(); - - notify_progress("Saving label..."); - - query = Form.serialize("label_edit_form"); - - new Ajax.Request("backend.php?" + query, { - onComplete: function(transport) { - dlg_frefresh_callback(transport); - } }); - - return false; - - } catch (e) { - exception_error("feedEditSave (main)", e); - } - -} - function clearFeedArticles(feed_id) { notify_progress("Clearing feed..."); @@ -898,28 +870,6 @@ function clearFeedArticles(feed_id) { return false; } -/* -function toggle_feedlist() { - try { - debug("toggle_feedlist"); - - var fl = document.getElementById("feeds-holder"); - - if (!Element.visible(fl)) { - Element.show(fl); - fl.style.zIndex = 30; - fl.scrollTop = _hfd_scrolltop; - } else { - _hfd_scrolltop = fl.scrollTop; - Element.hide(fl); -// Effect.Fade(fl, {duration : 0.2, -// queue: { position: 'end', scope: 'FLFADEQ', limit: 1 }}); - } - } catch (e) { - exception_error("toggle_feedlist", e); - } -} */ - function collapse_feedlist() { try { debug("toggle_feedlist"); -- 2.39.5