Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ajax load indicator

  • Loading branch information...
commit b1936f6ef3471b12092939f089b9d4c96543db0b 1 parent 35d51aa
@jaseemabid jaseemabid authored
View
10 js/functions.js
@@ -337,7 +337,15 @@
});
},
quirks : function(){ /* Stuff which i cant put anywhere else. Cant pollute the global object, hence this is here */
- "use strict";
+ $('#loading')
+ .hide() // hide it initially
+ .ajaxStart(function() {
+ $(this).show();
+ })
+ .ajaxStop(function() {
+ $(this).fadeOut(1400);
+ });
+
$('img#bugButton.VideoBarButton, img.feedbackDock').click(function(){
Paathshaala.showFeedback();
});
View
BIN  pics/load.gif 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
2  profile.php
@@ -34,7 +34,7 @@
I am : <span id=''><?php echo $u->getFullname(); ?></span><br />
email : <?php echo $u->getEmail(); ?> <br />
here I am called : <span id='profileUsername'><?php echo $u->getUsername(); ?></span><br />
- Insti Roll : <?php echo $u->getRoll(); ?> (Helps us to give you better suggestions)<br />
+ Institute Roll : <?php echo $u->getRoll(); ?> (Helps us to give you better suggestions)<br />
</div>
</div>
View
1  search.php
@@ -11,7 +11,6 @@
</head>
<body>
<div id='topbar'></div>
-<img src="pics/load.gif" id='loading' style='display:none;'>
<div id='container'>
<?php
echo $topBar;
View
6 source.php
@@ -52,7 +52,8 @@
<img src='pics/key.png'> <input required type='password' id='pass2' placeholder='Password again'/> <img src='.$nullImage.'> <br />
<button id='joinButton' type='button'>Join</button>
</form>
-</div> <!-- /top -->";
+</div>
+<img src='pics/load.gif' id='loading' style='display:none;'>";
}
else{
@@ -76,7 +77,8 @@
<a href='faq.php'><img src='pics/settings.png'> Help </a><br />
<a href='response/logout.php'><img src='pics/tick.png'> Sign off </a><br />
</div>
-</div> <!-- /top -->";
+</div>
+<img src='pics/load.gif' id='loading' style='display:none;'> ";
}
$bottomBar = "<div id='bottom'>
Please sign in to comment.
Something went wrong with that request. Please try again.