From 8a097fa3819b32e58a8078270b324e12aa381188 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 21 Nov 2010 23:05:51 +0300 Subject: [PATCH] fix preference tree elements not being properly clickable in Firefox --- PrefFilterTree.js | 8 -------- PrefLabelTree.js | 8 -------- modules/pref-feeds.php | 4 ++-- modules/pref-filters.php | 9 +++++++++ modules/pref-labels.php | 8 ++++++++ prefs.js | 2 +- 6 files changed, 20 insertions(+), 19 deletions(-) diff --git a/PrefFilterTree.js b/PrefFilterTree.js index 6f38f8db..a4cf3dac 100644 --- a/PrefFilterTree.js +++ b/PrefFilterTree.js @@ -48,13 +48,5 @@ dojo.declare("fox.PrefFilterTree", lib.CheckBoxTree, { return (!item.error || item.error == '') ? "dijitTreeRow" : "dijitTreeRow Error"; }, - onClick: function (item) { - var id = String(item.id); - var bare_id = id.substr(id.indexOf(':')+1); - - if (id.match('FILTER:')) { - editFilter(bare_id, event); - } - }, }); diff --git a/PrefLabelTree.js b/PrefLabelTree.js index 47e18780..05a0c15b 100644 --- a/PrefLabelTree.js +++ b/PrefLabelTree.js @@ -39,13 +39,5 @@ dojo.declare("fox.PrefLabelTree", lib.CheckBoxTree, { getIconClass: function (item, opened) { return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "invisible"; }, - onClick: function (item) { - var id = String(item.id); - var bare_id = id.substr(id.indexOf(':')+1); - - if (id.match('LABEL:')) { - editLabel(bare_id, event); - } - }, }); diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index d4bde489..2c450359 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1220,9 +1220,9 @@ var bare_id = id.substr(id.indexOf(':')+1); if (id.match('FEED:')) { - editFeed(bare_id, event); + editFeed(bare_id); } else if (id.match('CAT:')) { - editCat(bare_id, item, event); + editCat(bare_id, item); } + + "; print ""; #pane diff --git a/modules/pref-labels.php b/modules/pref-labels.php index e381d72f..72e6dd1e 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -304,6 +304,14 @@ + "; print ""; #pane diff --git a/prefs.js b/prefs.js index 0eb570f5..55e29d2a 100644 --- a/prefs.js +++ b/prefs.js @@ -166,7 +166,7 @@ function editUser(id, event) { } -function editFilter(id, event) { +function editFilter(id) { try { var query = "backend.php?op=pref-filters&subop=edit&id=" + param_escape(id); -- 2.39.5