Skip to content

Commit b0ae1af

Browse files
author
jlengstorf
committed
JS tweaks.
1 parent 66d5a69 commit b0ae1af

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ class="login button">Login &rarr;</a>
162162
// Hides the notification
163163
$("#count-bar").addClass("hidden");
164164

165-
$("#photos").find('.loading').hide(400).delay(400).remove();
166-
167165
$.getJSON(
168166
'https://api.instagram.com/v1/tags/<?=$tag?>/media/recent?callback=?',
169167
{
@@ -176,7 +174,10 @@ class="login button">Login &rarr;</a>
176174
var new_photos = response.data,
177175
pagination = response.pagination,
178176
delay = 0,
179-
anim_speed = 200;
177+
anim_speed = 200;
178+
179+
// Removes the loading LI if present
180+
$("#photos").find('.loading').hide(400).delay(400).remove();
180181

181182
// Resets the new photo count
182183
newcount = 0;

0 commit comments

Comments
 (0)