Permalink
Browse files

Fixed loading indicator by turning async on/off

  • Loading branch information...
WPsites committed May 23, 2012
1 parent 9f955eb commit afa57a6113db340e3996b3a020a427fe00ebeb3b
Showing with 3 additions and 0 deletions.
  1. +2 −0 WPide.php
  2. +1 −0 jqueryFileTree.js
View
@@ -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
@@ -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 ){

0 comments on commit afa57a6

Please sign in to comment.