Browse Source

Add working animation to profile update

pull/24/head
Teknikode 8 years ago
parent
commit
f3393a426c
  1. 3
      templates/default/header.php
  2. 880
      templates/default/js/jquery/jquery.isloading.min.js
  3. 6
      templates/default/js/profile.js

3
templates/default/header.php

@ -28,7 +28,8 @@ @@ -28,7 +28,8 @@
array_push($jsFiles, 'bootbox/bootbox.min.js',
'PageDown/Markdown.Converter.js',
'PageDown/Markdown.Sanitizer.js',
'bootstrap/markdown/bootstrap-markdown.js',
'bootstrap/markdown/bootstrap-markdown.js',
'jquery/jquery.isloading.min.js',
'profile.js');
break;
case "about":

880
templates/default/js/jquery/jquery.isloading.min.js vendored

File diff suppressed because one or more lines are too long

6
templates/default/js/profile.js

@ -63,7 +63,10 @@ $(document).ready(function() { @@ -63,7 +63,10 @@ $(document).ready(function() {
return false;
});
$("#update_submit").click(function(){
$("#update_submit").click(function(){
// Start Updating Animation
$.isLoading({ text: "Working" });
current_password=encodeURIComponent($("#update_password_current").val());
password=encodeURIComponent($("#update_password").val());
password_confirm=encodeURIComponent($("#update_password_confirm").val());
@ -83,6 +86,7 @@ $(document).ready(function() { @@ -83,6 +86,7 @@ $(document).ready(function() {
{
if(html=='true')
{
$.isLoading( "hide" );
window.location.reload();
}
else

Loading…
Cancel
Save