diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-30 07:13:27 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-30 07:13:27 -0400 |
commit | 7e2f2272794c58a5a944a2904e3980c056e4a38e (patch) | |
tree | ee8f5a111b7107ab7bb95e1623c2512bdf9fa710 /js | |
parent | c1e949699ed371e7d1328885e9795c0b8736b3c0 (diff) |
change look of firstrun page
Diffstat (limited to 'js')
-rw-r--r-- | js/news.js | 9 | ||||
-rw-r--r-- | js/settings.js | 4 |
2 files changed, 5 insertions, 8 deletions
diff --git a/js/news.js b/js/news.js index b1c1fc8ce..f45d9c135 100644 --- a/js/news.js +++ b/js/news.js @@ -658,16 +658,15 @@ $(document).ready(function(){ News.Feed.load($(this).attr('data-id')); }); - $('#addfeed_dialog_firstrun').hide(); + /* first run script begins */ + $('#browsebtn_firstrun, #cloudbtn_firstrun, #importbtn_firstrun').hide(); + + /* first run script ends */ $('#addfeed').click(function() { News.UI.overview('#addfeed_dialog','feeddialog.php'); }); - $('#addfeedbtn').click(function() { - $(this).hide(); - $('#addfeed_dialog_firstrun').show(); - }); $('#addfolder').click(function() { News.UI.overview('#addfolder_dialog','folderdialog.php'); diff --git a/js/settings.js b/js/settings.js index b10f3c4fe..ae6e7257e 100644 --- a/js/settings.js +++ b/js/settings.js @@ -35,9 +35,7 @@ News.Settings={ if (News.Settings.importkind == News.Settings.IMPORTCLOUD) { path = News.Settings.importpath; } else if (this.importkind == this.IMPORTLOCAL) { - } - else { - OC.dialogs.alert(t('news','Import kind not specified'), t('news', 'Error')); + } $.post(OC.filePath('news', 'ajax', 'importopml.php'), { path: path }, function(jsondata){ |