summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-23 13:26:02 +0300
committerAndrew Dolgov <[email protected]>2010-11-23 13:26:02 +0300
commit8386f8614b1426869490adc9bfdb06344532eba3 (patch)
tree2a755b2115bbc77932ec4833aff168b210c432c9 /functions.js
parent8cd576a12ad94175fc511bab83191d92f83aa0b0 (diff)
refactor tags dialog
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js60
1 files changed, 0 insertions, 60 deletions
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 += "<div><b>Stack trace:</b></div>" +
"<textarea readonly=\"1\">" + e.stack + "</textarea>";
-// content += "<div style='text-align : center'>" +
-// "<button onclick=\"closeInfoBox()\">" +
-// "Close this window" + "</button></div>";
-
content += "</div>";
// 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&reg_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;