You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2015/05/20 19:11:56 UTC
airavata-php-gateway git commit: Fixing Experiment State not updating
issue in PGA
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 <sc...@apache.org>
Authored: Wed May 20 22:41:18 2015 +0530
Committer: Supun Nakandala <sc...@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