summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-08-03 01:01:14 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-08-03 01:01:14 -0400
commitfc78ffbefd3c6229cba09b2e93de61d278532133 (patch)
tree39e3b7c842ded1345fa92decad42ea8bf9daa23f /js
parenta4502857ece08326168fd5b1170d9ff9f4c3be01 (diff)
improves dialog to add a feed
Diffstat (limited to 'js')
-rw-r--r--js/news.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/js/news.js b/js/news.js
index 8490254e3..ea5f04007 100644
--- a/js/news.js
+++ b/js/news.js
@@ -109,8 +109,12 @@ News={
function(jsondata){
if(jsondata.status == 'success'){
$('div[data-id="' + folderid + '"] > ul').append(jsondata.data.listfeed);
- //setupFeedList();
- OC.dialogs.alert(jsondata.data.message, t('news', 'Success!'));
+ setupFeedList();
+ OC.dialogs.confirm(t('news', 'Do you want to add another feed?'), t('news', 'Feed added!'), function(answer) {
+ if(!answer) {
+ $('#addfeed_dialog').dialog('destroy').remove();
+ }
+ });
} else {
OC.dialogs.alert(jsondata.data.message, t('news', 'Error'));
}