Subversion Repositories DevTools

Rev

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

Rev 6882 Rev 6883
Line 33... Line 33...
33
'------------ Variable Init -------------------
33
'------------ Variable Init -------------------
34
parRtagId = Request("rtag_id")
34
parRtagId = Request("rtag_id")
35
objPMod.PersistInQryString("rtag_id")
35
objPMod.PersistInQryString("rtag_id")
36
'----------------------------------------------
36
'----------------------------------------------
37
Sub BuildLogOptions%>
37
Sub BuildLogOptions%>
-
 
38
    <fieldset class='body_rowg nowrap' style='padding-right:5px'>
-
 
39
        <legend class="body_scol">Filters</legend>
38
    <fieldset class=body_rowg>
40
    <fieldset class=body_rowg id=fsReason>
39
        <legend class="body_scol">Display Options</legend>
41
        <legend class="body_scol">Reason</legend>
40
        <div><input id=onlyNew class='triggerRefresh' type=checkbox>Only New</div>
42
        <div><input checked value='N' class='triggerRefresh' type=checkbox>New</div>
41
        <div><input id=onlyComplete class='triggerRefresh' type=checkbox>Only Complete</div>
43
        <div><input checked value='R' class='triggerRefresh' type=checkbox>Ripple</div>
-
 
44
        <div><input checked value='T' class='triggerRefresh' type=checkbox>Test</div>
-
 
45
        <div><input checked value='P' class='triggerRefresh' type=checkbox>Restored</div>
42
    </fieldset>
46
    </fieldset>
-
 
47
    <fieldset class=body_rowg id=fsResult>
-
 
48
        <legend class="body_scol">Result</legend>
-
 
49
        <div><input checked value='C' class='triggerRefresh' type=checkbox>Complete</div>
-
 
50
        <div><input checked value='E' class='triggerRefresh' type=checkbox>Errors</div>
-
 
51
        <div><input checked value='O' class='triggerRefresh' type=checkbox>Other</div>
-
 
52
    </fieldset>
-
 
53
    </fieldset>
-
 
54
 
43
<%End Sub
55
<%End Sub
44
'
56
'
45
'----------------------------------------------
57
'----------------------------------------------
46
'
58
'
47
Sub InsertJavaScript%>
59
Sub InsertJavaScript%>
Line 59... Line 71...
59
                type : "POST",
71
                type : "POST",
60
                data : function (o){
72
                data : function (o){
61
<%If parRtagId <> "" Then %>
73
<%If parRtagId <> "" Then %>
62
                    o.rtag_id = "<%=parRtagId%>";
74
                    o.rtag_id = "<%=parRtagId%>";
63
<%End If%>
75
<%End If%>
-
 
76
                    var fs = '';
64
                    o.onlyNew = $('#onlyNew').is(":checked");
77
                    jQuery.each($('#fsReason input:checked'),function(i,val){
-
 
78
                        fs += $(this).val();
-
 
79
                        });
-
 
80
                    o.freason=fs;
-
 
81
                    fs = '';
65
                    o.onlyComplete = $('#onlyComplete').is(":checked");
82
                    jQuery.each($('#fsResult input:checked'),function(i,val){
66
 
-
 
-
 
83
                        fs += $(this).val();
-
 
84
                        });
-
 
85
                    o.fresult=fs;
67
                }
86
                }
68
            },
87
            },
69
            dom: "frtiS",
88
            dom: "frtiS",
70
            scrollY: $( document ).height() 
89
            scrollY: $( document ).height() 
71
<%If parRtagId <> "" Then %>
90
<%If parRtagId <> "" Then %>
Line 111... Line 130...
111
                $('#indefPause').hide();
130
                $('#indefPause').hide();
112
            }
131
            }
113
        },'json');
132
        },'json');
114
    }
133
    }
115
 
134
 
116
    // Force refresh when check box chnages
135
    // Force refresh when check box changes
-
 
136
    // Delay the refesh 1 second so that multiple checkboxes can be ticked
-
 
137
    // Restart the delay if another trigger is invoked.
-
 
138
    var pageTriggerDelay = 0;
117
     $('.triggerRefresh').change(function() {
139
     $('.triggerRefresh').change(function() {
-
 
140
         if ( pageTriggerDelay != 0 ) {
-
 
141
             clearTimeout(pageTriggerDelay);
-
 
142
             pageTriggerDelay = 0;
-
 
143
         }
-
 
144
 
-
 
145
 
-
 
146
         // Sanity test
-
 
147
         // If no check boxes are check - check all
-
 
148
         //
-
 
149
         if ($('#fsReason input:checked').length <= 0){
-
 
150
             jQuery.each($('#fsReason input'),function(i,val){
-
 
151
                        $(this).prop('checked', true);
-
 
152
                        });
-
 
153
         }
-
 
154
 
-
 
155
         if ($('#fsResult input:checked').length <= 0){
-
 
156
             jQuery.each($('#fsResult input'),function(i,val){
-
 
157
                        $(this).prop('checked', true);
-
 
158
                        });
-
 
159
         }
-
 
160
 
-
 
161
         pageTriggerDelay = setTimeout(function(){
118
         table.api().ajax.reload();
162
             table.api().ajax.reload();
-
 
163
             }, 1000);
119
    });
164
    });
120
 
165
 
121
    updateIndefPause();
166
    updateIndefPause();
122
    indefTimer = setInterval( updateIndefPause,30000 );
167
    indefTimer = setInterval( updateIndefPause,30000 );
123
 
168
 
Line 150... Line 195...
150
                <td width="146px" class="bg_panel" valign="top">
195
                <td width="146px" class="bg_panel" valign="top">
151
                    <%Call BuildMenuPane%>
196
                    <%Call BuildMenuPane%>
152
                    <%Call BuildLogOptions%>
197
                    <%Call BuildLogOptions%>
153
                </td>
198
                </td>
154
                <td width="100%" rowspan="2" valign="top" align="center"  bgcolor="#EEEFEF">
199
                <td width="100%" rowspan="2" valign="top" align="center"  bgcolor="#EEEFEF">
155
                    <div class=panel style="width:60%">
200
                    <div class=panel style="min-width:50%">
156
                        <div class=rounded_box_caption>
201
                        <div class=rounded_box_caption>
157
                         <%=IIf (parRtagId = "","SYSTEM BUILD LOG", "RELEASE BUILD LOG")%>
202
                         <%=IIf (parRtagId = "","SYSTEM BUILD LOG", "RELEASE BUILD LOG")%>
158
                        </div>
203
                        </div>
159
                        <div class="rounded_box rounded_box_pad" >
204
                        <div class="rounded_box rounded_box_pad" >
160
                            <!-- Indef Pause Warning ---->
205
                            <!-- Indef Pause Warning ---->