jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject svn commit: r1540882 - /jena/branches/jena-fuseki-new-ui/pages/js/lib/qonsole.js
Date Mon, 11 Nov 2013 23:35:31 GMT
Author: ijd
Date: Mon Nov 11 23:35:31 2013
New Revision: 1540882

URL: http://svn.apache.org/r1540882
Log:
Remove brief flash of spinner during ping action

Modified:
    jena/branches/jena-fuseki-new-ui/pages/js/lib/qonsole.js

Modified: jena/branches/jena-fuseki-new-ui/pages/js/lib/qonsole.js
URL: http://svn.apache.org/viewvc/jena/branches/jena-fuseki-new-ui/pages/js/lib/qonsole.js?rev=1540882&r1=1540881&r2=1540882&view=diff
==============================================================================
--- jena/branches/jena-fuseki-new-ui/pages/js/lib/qonsole.js (original)
+++ jena/branches/jena-fuseki-new-ui/pages/js/lib/qonsole.js Mon Nov 11 23:35:31 2013
@@ -116,13 +116,12 @@ var qonsole = function() {
     $("a.run-query").on( "click", runQuery );
 
     $(document)
-      .ajaxStart(function() {
-        elementVisible( ".loadingSpinner", true );
-        startTimingResults();
-      })
-      .ajaxStop(function() {
-        elementVisible( ".loadingSpinner", false );
-      });
+//      .ajaxStart(function() {
+//        elementVisible( ".loadingSpinner", true );
+//      })
+//      .ajaxStop(function() {
+//        elementVisible( ".loadingSpinner", false );
+//      });
 
     // dialogue events
     $("#prefixEditor").on( "click", "#lookupPrefix", onLookupPrefix )
@@ -189,7 +188,10 @@ var qonsole = function() {
       dataType: "text"
     };
 
-    $.ajax( url, options );
+    elementVisible( ".loadingSpinner", true );
+    $.ajax( url, options ).then( function() {
+      elementVisible( ".loadingSpinner", false );
+    } );
   };
 
   /** Set up the drop-down list of end-points */
@@ -413,6 +415,7 @@ var qonsole = function() {
 
     checkForceTextFormat( format, options );
     checkForceJsonP( options, format );
+    startTimingResults();
 
     $.ajax( url, options );
   };



Mime
View raw message