From 8386f8614b1426869490adc9bfdb06344532eba3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 23 Nov 2010 13:26:02 +0300 Subject: refactor tags dialog --- functions.js | 60 ------------------------------------------------------------ 1 file changed, 60 deletions(-) (limited to 'functions.js') diff --git a/functions.js b/functions.js index 02e93eef8..1b5bfaf4b 100644 --- a/functions.js +++ b/functions.js @@ -41,10 +41,6 @@ function exception_error(location, e, ext_info) { content += "
Stack trace:
" + ""; -// content += "
" + -// "
"; - content += ""; // TODO: add code to automatically report errors to tt-rss.org @@ -490,62 +486,6 @@ function infobox_callback2(transport) { } } -function createFilter() { - - try { - - var form = document.forms['filter_add_form']; - var reg_exp = form.reg_exp.value; - - if (reg_exp == "") { - alert(__("Can't add filter: nothing to match on.")); - return false; - } - - var query = "?op=rpc&subop=verifyRegexp®_exp=" + param_escape(reg_exp); - - notify_progress("Verifying regular expression..."); - - new Ajax.Request("backend.php", { - parameters: query, - onComplete: function(transport) { - handle_rpc_reply(transport); - - var response = transport.responseXML; - - if (response) { - var s = response.getElementsByTagName("status")[0].firstChild.nodeValue; - - notify(''); - - if (s == "INVALID") { - alert("Match regular expression seems to be invalid."); - return; - } else { - - var query = Form.serialize("filter_add_form"); - - // we can be called from some other tab in Prefs - if (typeof active_tab != 'undefined' && active_tab) { - active_tab = "filterConfig"; - } - - new Ajax.Request("backend.php?" + query, { - onComplete: function (transport) { - infobox_submit_callback2(transport); - } }); - - return true; - } - } - - } }); - - } catch (e) { - exception_error("createFilter", e); - } -} - function filterCR(e, f) { var key; -- cgit v1.2.3