summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-20 15:36:42 +0300
committerAndrew Dolgov <[email protected]>2010-11-20 15:36:42 +0300
commit33f31dfdfc2ca303c55c1f8b6ef7d002053228a1 (patch)
tree382a447d7c0c993becc4185ef1e5633c98b6dcda /functions.js
parente2eda97930a509673e2055c91308991dfd017ea4 (diff)
misc feed edit dialog fixes
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/functions.js b/functions.js
index 5e3156126..e303c4049 100644
--- a/functions.js
+++ b/functions.js
@@ -1564,8 +1564,10 @@ function getSelectedTableRowIds(id) {
}
function editFeed(feed, event) {
-
try {
+ if (feed <= 0)
+ return alert(__("You can't edit this kind of feed."));
+
var query = "backend.php?op=pref-feeds&subop=editfeed&id=" +
param_escape(feed);