aboutsummaryrefslogtreecommitdiff
path: root/p/scripts/main.js
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-31 14:48:35 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-31 14:48:35 +0100
commitc29b6d4c226cf9c45d7d372ee4bce3bcbcca99a6 (patch)
tree9a8f2be9185cd110988bf8a687aaa316c9145db9 /p/scripts/main.js
parente92acfd8227bc3ac94e9039343ff76c20facf29a (diff)
parente91b72b63cd11ae3c4f59e48439e93955242c673 (diff)
Merge branch 'dev' into beta
Conflicts: README.fr.md README.md
Diffstat (limited to 'p/scripts/main.js')
-rw-r--r--p/scripts/main.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 9b6524b01..1be75bb12 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -155,6 +155,9 @@ function mark_read(active, only_not_read) {
faviconNbUnread();
pending_feeds.splice(index_pending, 1);
+ }).fail(function (data) {
+ openNotification(i18n.notif_request_failed, 'bad');
+ pending_feeds.splice(index_pending, 1);
});
}
@@ -210,6 +213,9 @@ function mark_favorite(active) {
}
pending_feeds.splice(index_pending, 1);
+ }).fail(function (data) {
+ openNotification(i18n.notif_request_failed, 'bad');
+ pending_feeds.splice(index_pending, 1);
});
}
@@ -513,7 +519,7 @@ function init_column_categories() {
if ($(this).nextAll('.dropdown-menu').length === 0) {
var feed_id = $(this).closest('.item').attr('id').substr(2),
feed_web = $(this).data('fweb'),
- template = $('#feed_config_template').html().replace(/!!!!!!/g, feed_id).replace('http://example.net/', feed_web);
+ template = $('#feed_config_template').html().replace(/------/g, feed_id).replace('http://example.net/', feed_web);
$(this).attr('href', '#dropdown-' + feed_id).prev('.dropdown-target').attr('id', 'dropdown-' + feed_id).parent().append(template);
}
});