diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-30 02:24:38 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-30 02:24:38 -0400 |
commit | a5438863a4e88fb5c9e166e8810f493a1feb2cf0 (patch) | |
tree | 5239bdede220fdd4a74f988fa3493cc86b0f33c7 /js | |
parent | 0812aadc7b1eaf45afd8a56640cc5de84d0e3dd7 (diff) |
parses opml file to get the title
Diffstat (limited to 'js')
-rw-r--r-- | js/news.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/js/news.js b/js/news.js index 4bbbc8312..0b5f792ff 100644 --- a/js/news.js +++ b/js/news.js @@ -98,9 +98,11 @@ News={ } else { } - - $.post(OC.filePath('news', 'ajax', 'importopml.php'), { path: path}, function(jsondata){ - OC.dialogs.alert(jsondata.data.message, t('news', 'Success!')); + + $.getJSON(OC.filePath('news', 'ajax', 'importopml.php'), { path: path }, function(jsondata){ + if (jsondata.status == 'success') { + alert(jsondata.data.title); + } }); } |