Permalink
Browse files

Ajax load indicator

  • Loading branch information...
1 parent 35d51aa commit b1936f6ef3471b12092939f089b9d4c96543db0b @jaseemabid jaseemabid committed Dec 1, 2011
Showing with 14 additions and 5 deletions.
  1. +9 −1 js/functions.js
  2. BIN pics/load.gif
  3. +1 −1 profile.php
  4. +0 −1 search.php
  5. +4 −2 source.php
View
@@ -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
@@ -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
@@ -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
@@ -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'>

0 comments on commit b1936f6

Please sign in to comment.