diff options
author | Gregor Tätzner <gregor@freenet.de> | 2012-07-28 07:58:41 +0200 |
---|---|---|
committer | Gregor Tätzner <gregor@freenet.de> | 2012-07-28 07:58:41 +0200 |
commit | e983a3753304783f55c319989b2c2b14d82c0d04 (patch) | |
tree | 5e8619f13301aa742e8612e6ab1eb9cdf266aa72 /js | |
parent | 42458fad2ff26b95b09342981579e11ae783eaf8 (diff) |
align spinner vertical
Diffstat (limited to '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 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('<img src="' + OC.imagePath('core','loader.gif') + '" alt="refresh" />'); + counterplace.html('<img style="vertical-align: middle;" src="' + OC.imagePath('core','loader.gif') + '" alt="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); |