diff options
Diffstat (limited to 'js/news.js')
-rw-r--r-- | js/news.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/news.js b/js/news.js index bc7e7348c..953afab27 100644 --- a/js/news.js +++ b/js/news.js @@ -63,9 +63,9 @@ News = { $(button).prop('value', t('news', 'Changing...')); var url = OC.filePath('news', 'ajax', 'changefoldername.php'); - var data = { - folderName: folderName, - folderId: folderId + var data = { + folderName: folderName, + folderId: folderId }; $.post(url, data, function(jsonData){ @@ -93,7 +93,7 @@ News = { $(button).attr("disabled", true); $(button).prop('value', t('news', 'Adding...')); - + var folderid = 0; if($('#firstrun').length == 0){ folderid = $('#addfeed_dialog .inputfolderid').val(); @@ -106,9 +106,9 @@ News = { dataType: "json", success: function(jsonData){ if($('#firstrun').length > 0){ - window.location.reload(); + window.location.reload(); } else { - if(jsonData.status == 'success'){ + if(jsonData.status == 'success'){ News.Objects.Menu.addNode(folderid, jsonData.data.listfeed); News.Objects.Menu.load(News.MenuNodeType.Feed, jsonData.data.feedid); $('#addfeed_dialog').dialog('close'); @@ -128,7 +128,7 @@ News = { } }); }, - + }, } |