From e983a3753304783f55c319989b2c2b14d82c0d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregor=20T=C3=A4tzner?= Date: Sat, 28 Jul 2012 07:58:41 +0200 Subject: align spinner vertical --- js/news.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'js') diff --git a/js/news.js b/js/news.js index 92bd62749..c9ee12d27 100644 --- a/js/news.js +++ b/js/news.js @@ -29,7 +29,7 @@ News={ if(jsondata.status != 'error'){ if(dialogtype == '#import_dialog') { $('#cloudbtn').click(function() { - /* + /* * it needs to be filtered by MIME type, but there are too many MIME types corresponding to opml * and filepicker doesn't support multiple MIME types filter. */ @@ -60,7 +60,7 @@ News={ $.getJSON(OC.filePath('news', 'ajax', 'selectfromcloud.php'),{'path':path},function(jsondata){ if(jsondata.status == 'success'){ $("#opml_file").prop('value', jsondata.data.tmp); - + } else{ OC.dialogs.alert(jsondata.data.message, t('news', 'Error')); @@ -199,11 +199,11 @@ News={ var counterplace = $('.feeds_list[data-id="'+feedid+'"]').find('#unreaditemcounter'); var oldcount = counterplace.html(); counterplace.removeClass('nonzero').addClass('zero'); - counterplace.html('refresh'); + counterplace.html('refresh'); $.post(OC.filePath('news', 'ajax', 'updatefeed.php'),{'feedid':feedid, 'feedurl':feedurl, 'folderid':folderid},function(jsondata){ if(jsondata.status == 'success'){ var newcount = jsondata.data.unreadcount; - if (newcount > 0) { + if (newcount > 0) { counterplace.addClass('nonzero'); counterplace.html(newcount); } @@ -212,12 +212,12 @@ News={ } } else{ - if (oldcount > 0) { + if (oldcount > 0) { counterplace.addClass('nonzero'); counterplace.html(oldcount); } } - + }); } } @@ -272,7 +272,7 @@ $(document).ready(function(){ }); setupFeedList(); - + News.Feed.updateAll(); var updateInterval = 200000; //how often the feeds should update (in msec) setInterval('News.Feed.updateAll()', updateInterval); -- cgit v1.2.3