airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata-php-gateway git commit: Fixing Experiment State not updating issue in PGA
Date Wed, 20 May 2015 17:11:56 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/master c761763c6 -> 8611ca7b7


Fixing Experiment State not updating issue in PGA


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/8611ca7b
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/8611ca7b
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/8611ca7b

Branch: refs/heads/master
Commit: 8611ca7b79bedbed397e2ae5a13e8c267477b68d
Parents: c761763
Author: Supun Nakandala <scnakandala@apache.org>
Authored: Wed May 20 22:41:18 2015 +0530
Committer: Supun Nakandala <scnakandala@apache.org>
Committed: Wed May 20 22:41:18 2015 +0530

----------------------------------------------------------------------
 app/views/experiment/summary.blade.php | 32 +++++++++++++++--------------
 1 file changed, 17 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/8611ca7b/app/views/experiment/summary.blade.php
----------------------------------------------------------------------
diff --git a/app/views/experiment/summary.blade.php b/app/views/experiment/summary.blade.php
index c3f3d4e..b643e8a 100755
--- a/app/views/experiment/summary.blade.php
+++ b/app/views/experiment/summary.blade.php
@@ -12,20 +12,22 @@
 @section('scripts')
     @parent
     <script>
-    setInterval( function(){
-        if( $.trim( $(".exp-status").html() ) != "COMPLETED")
-        {
-            $.ajax({
-                type:"GET",
-                url: "{{URL::to('/') }}/experiment/summary",
-                data: {expId: "{{ Input::get('expId') }}" },
-                success: function( exp){
-                    if( $.trim( $("#expObj").val() ) != $.trim( exp) )
-                       $(".refresh-exp").click();
-
-                }
-            });
-        }
-    }, 3000);
+        var $continue = true;
+        setInterval( function(){
+            if( $.trim( $(".exp-status").html() ) != "COMPLETED" && $continue)
+            {
+                $.ajax({
+                    type:"GET",
+                    url: "{{URL::to('/') }}/experiment/summary",
+                    data: {expId: "{{ Input::get('expId') }}" },
+                    success: function( exp){
+                        if( $.trim( $("#expObj").val() ) != $.trim( exp) ){
+                            $continue = false;
+                            $(".refresh-exp").click();
+                        }
+                    }
+                });
+            }
+        }, 3000);
     </script>
 @stop
\ No newline at end of file


Mime
View raw message