diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-03 01:01:14 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-03 01:01:14 -0400 |
commit | fc78ffbefd3c6229cba09b2e93de61d278532133 (patch) | |
tree | 39e3b7c842ded1345fa92decad42ea8bf9daa23f /js | |
parent | a4502857ece08326168fd5b1170d9ff9f4c3be01 (diff) |
improves dialog to add a feed
Diffstat (limited to 'js')
-rw-r--r-- | js/news.js | 8 |
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')); } |