Subversion Repositories DevTools

Rev

Rev 6916 | Rev 7250 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6916 Rev 7063
Line 118... Line 118...
118
                }
118
                }
119
                return sPre;
119
                return sPre;
120
            }
120
            }
121
        });
121
        });
122
 
122
 
123
    //  Dynamically maintain an indication of an indefinite pause
-
 
124
    //  Update at startup and every 30 seconds
-
 
125
    function updateIndefPause()
-
 
126
    {
-
 
127
        $.get('_json_daemon.asp', {opr : 'indefPause'},function(data){
-
 
128
            if(data.indefPause > 0){
-
 
129
                $('#indefPause').show();
-
 
130
            }else{
-
 
131
                $('#indefPause').hide();
-
 
132
            }
-
 
133
        },'json');
-
 
134
    }
-
 
135
 
-
 
136
    // Force refresh when check box changes
123
    // Force refresh when check box changes
137
    // Delay the refesh 1 second so that multiple checkboxes can be ticked
124
    // Delay the refesh 1 second so that multiple checkboxes can be ticked
138
    // Restart the delay if another trigger is invoked.
125
    // Restart the delay if another trigger is invoked.
139
    var pageTriggerDelay = 0;
126
    var pageTriggerDelay = 0;
140
     $('.triggerRefresh').change(function() {
127
        $('.triggerRefresh').change(function() {
141
 
128
 
142
         $('#cbPending').show();
129
            $('#cbPending').show();
143
 
130
 
144
         if ( pageTriggerDelay != 0 ) {
131
            if ( pageTriggerDelay != 0 ) {
145
             clearTimeout(pageTriggerDelay);
132
                clearTimeout(pageTriggerDelay);
146
             pageTriggerDelay = 0;
133
                pageTriggerDelay = 0;
147
         }
134
            }
148
 
135
 
149
 
136
 
150
         // Sanity test
137
            // Sanity test
151
         // If no check boxes are check - check all
138
            // If no check boxes are check - check all
152
         //
139
            //
153
         if ($('#fsReason input:checked').length <= 0){
140
            if ($('#fsReason input:checked').length <= 0){
154
             jQuery.each($('#fsReason input'),function(i,val){
141
                jQuery.each($('#fsReason input'),function(i,val){
155
                        $(this).prop('checked', true);
142
                        $(this).prop('checked', true);
156
                        });
143
                        });
157
         }
144
            }
158
 
-
 
159
         pageTriggerDelay = setTimeout(function(){
-
 
160
             table.api().ajax.reload();
-
 
161
             }, 1000);
-
 
162
    });
-
 
163
 
-
 
164
    updateIndefPause();
-
 
165
    indefTimer = setInterval( updateIndefPause,30000 );
-
 
166
 
-
 
167
 
145
 
-
 
146
            pageTriggerDelay = setTimeout(function(){
-
 
147
                table.api().ajax.reload();
-
 
148
                }, 1000);
-
 
149
        });
168
	} );
150
	});
169
</script>
151
</script>
170
<%End Sub%>
152
<%End Sub%>
171
<html>
153
<html>
172
    <head>
154
    <head>
173
        <title>Release Manager</title>
155
        <title>Release Manager</title>
Line 198... Line 180...
198
                    <div class=panel style="min-width:50%">
180
                    <div class=panel style="min-width:50%">
199
                        <div class=rounded_box_caption>
181
                        <div class=rounded_box_caption>
200
                         <%=IIf (parRtagId = "","SYSTEM BUILD LOG", "RELEASE BUILD LOG")%>
182
                         <%=IIf (parRtagId = "","SYSTEM BUILD LOG", "RELEASE BUILD LOG")%>
201
                        </div>
183
                        </div>
202
                        <div class="rounded_box rounded_box_pad" >
184
                        <div class="rounded_box rounded_box_pad" >
203
                            <!-- Indef Pause Warning ---->
-
 
204
                            <div id="indefPause" style="display: none;" class="err_alert" style="font-size: small;">
-
 
205
                                <b>WARNING: Indefinite Pause, Build Daemons are all stopped - please contact an administrator</b>
-
 
206
                            </div>
-
 
207
                            <!-- Section Body Header ---->
185
                            <!-- Section Body Header ---->
208
                            <!-- Main Pane -->
186
                            <!-- Main Pane -->
209
                            <table id="table1" width=100% class="stripe">
187
                            <table id="table1" width=100% class="stripe">
210
                                <thead class="body_col">
188
                                <thead class="body_col">
211
                                    <th>Project</th>
189
                                    <th>Project</th>