summaryrefslogtreecommitdiffstats
path: root/js/news.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/news.js')
-rw-r--r--js/news.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/news.js b/js/news.js
index 4014aca6e..71000fdda 100644
--- a/js/news.js
+++ b/js/news.js
@@ -35,7 +35,8 @@ News={
$.post(url, { name: displayname },
function(jsondata){
if(jsondata.status == 'success'){
- $(button).closest('tr').prev().html(jsondata.page).show().next().remove();
+ //$(button).closest('tr').prev().html(jsondata.page).show().next().remove();
+ OC.dialogs.alert(jsondata.data.message, t('news', 'Success!'));
} else {
OC.dialogs.alert(jsondata.data.message, t('news', 'Error'));
}
@@ -57,7 +58,8 @@ News={
$.post(url, { feedurl: feedurl },
function(jsondata){
if(jsondata.status == 'success'){
- $(button).closest('tr').prev().html(jsondata.page).show().next().remove();
+ //$(button).closest('tr').prev().html(jsondata.page).show().next().remove();
+ OC.dialogs.alert(jsondata.data.message, t('news', 'Success!'));
} else {
OC.dialogs.alert(jsondata.data.message, t('news', 'Error'));
}