Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed loading indicator by turning async on/off

  • Loading branch information...
commit afa57a6113db340e3996b3a020a427fe00ebeb3b 1 parent 9f955eb
@WPsites authored
Showing with 3 additions and 0 deletions.
  1. +2 −0  WPide.php
  2. +1 −0  jqueryFileTree.js
View
2  WPide.php
@@ -553,6 +553,8 @@ function the_filetree() {
image_data = file+'::'+response;
});
+
+ jQuery.ajaxSetup({async:true});//enable async again
window.open('http://www.sumopaint.com/app/?key=ebcdaezjeojbfgih&url=<?php echo $app_url. "/wp-content";?>' + file + '&opt=' + image_data + '&title=Edit image&service=Save back to WPide&target=<?php echo urlencode( $app_url . "/wp-admin/admin.php?wpide_save_image=yes" ) ;?>');
View
1  jqueryFileTree.js
@@ -89,6 +89,7 @@ if(jQuery) (function($){
// Get the initial file list
jQuery.ajaxSetup({async:false}); //we need to wait until we get the response
showTree( $(this), escape(o.root) );
+ jQuery.ajaxSetup({async:true}); //enable async again
//if nothing returned then let user know something wrong with permissions
if ( $(this).children('.jqueryFileTree').length==0 ){
Please sign in to comment.
Something went wrong with that request. Please try again.