Subversion Repositories DevTools

Rev

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

Rev 3897 Rev 3898
Line 186... Line 186...
186
window.addEventListener("load",InitShow,false) :
186
window.addEventListener("load",InitShow,false) :
187
window.attachEvent && window.attachEvent("onload",InitShow);
187
window.attachEvent && window.attachEvent("onload",InitShow);
188
 
188
 
189
function InitShow(e)
189
function InitShow(e)
190
{
190
{
191
    toggleClass('rootCause',0);
191
    toggleDispClass('rootCause',0);
192
    toggleClass('rootFile',0);
192
    toggleDispClass('rootFile',0);
193
}
193
}
194
 
194
 
195
function getElementsByClassName(classname, node)  {
-
 
196
    if(!node) node = document.getElementsByTagName("body")[0];
-
 
197
    var a = [];
-
 
198
    var re = new RegExp('\\b' + classname + '\\b');
-
 
199
    var els = node.getElementsByTagName("*");
-
 
200
    for(var i=0,j=els.length; i<j; i++)
-
 
201
        if(re.test(els[i].className))a.push(els[i]);
-
 
202
    return a;
-
 
203
}
-
 
204
 
-
 
205
 
-
 
206
function toggleClass(cname,flip)
195
function toggleDispClass(cname,flip)
207
{
196
{
208
    var cookieName = 'RELMGR_BUILDSTATUS';
197
    var cookieName = 'RELMGR_BUILDSTATUS';
209
    var cv = JSON.parse(getCookie(cookieName));
198
    var cv = JSON.parse(getCookie(cookieName));
210
    if (!cv)
199
    if (!cv)
211
        cv = new Object;
200
        cv = new Object;
Line 237... Line 226...
237
        }
226
        }
238
    }
227
    }
239
    setCookie(cookieName, JSON.stringify(cv), 365 );
228
    setCookie(cookieName, JSON.stringify(cv), 365 );
240
}
229
}
241
 
230
 
242
function setCookie(c_name,value,exdays)
-
 
243
{
-
 
244
  var exdate=new Date();
-
 
245
  exdate.setDate(exdate.getDate() + exdays);
-
 
246
  var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
-
 
247
  document.cookie=c_name + "=" + c_value;
-
 
248
}
-
 
249
 
-
 
250
function getCookie(c_name)
-
 
251
{
-
 
252
  var c_value = document.cookie;
-
 
253
  var c_start = c_value.indexOf(" " + c_name + "=");
-
 
254
  if (c_start == -1)
-
 
255
  {
-
 
256
    c_start = c_value.indexOf(c_name + "=");
-
 
257
  }
-
 
258
  if (c_start == -1)
-
 
259
  {
-
 
260
    c_value = null;
-
 
261
  }
-
 
262
  else
-
 
263
  {
-
 
264
    c_start = c_value.indexOf("=", c_start) + 1;
-
 
265
    var c_end = c_value.indexOf(";", c_start);
-
 
266
    if (c_end == -1)
-
 
267
    {
-
 
268
      c_end = c_value.length;
-
 
269
    }
-
 
270
  c_value = unescape(c_value.substring(c_start,c_end));
-
 
271
}
-
 
272
return c_value;
-
 
273
}
-
 
274
 
-
 
275
</script>
231
</script>
276
 
232
 
277
<html>
233
<html>
278
   <head>
234
   <head>
279
      <title>Release Manager</title>
235
      <title>Release Manager</title>
Line 353... Line 309...
353
                           <tr>
309
                           <tr>
354
                           <td colspan=3></td>
310
                           <td colspan=3></td>
355
                           <td class="body_row">
311
                           <td class="body_row">
356
                           <fieldset class="fset" align="right">
312
                           <fieldset class="fset" align="right">
357
                                Show
313
                                Show
358
                                <input type="checkbox" checked value=0 name="showCause" id="rootCause" onClick="toggleClass('rootCause',1);">Config Errors
314
                                <input type="checkbox" checked value=0 name="showCause" id="rootCause" onClick="toggleDispClass('rootCause',1);">Config Errors
359
                                <input type="checkbox" checked value=0 name="showFile"  id="rootFile"  onClick="toggleClass('rootFile',1);">Build Errors
315
                                <input type="checkbox" checked value=0 name="showFile"  id="rootFile"  onClick="toggleDispClass('rootFile',1);">Build Errors
360
                           </fieldset>
316
                           </fieldset>
361
                           </td>
317
                           </td>
362
                           </tr>
318
                           </tr>
363
                           <%
319
                           <%
364
                           query_string = " select pkg.pkg_name, pv.pkg_version, pv.pv_id, dnr.rtag_id, dnr.root_cause, dnr.root_file, pv.pv_description"&_
320
                           query_string = " select pkg.pkg_name, pv.pkg_version, pv.pv_id, dnr.rtag_id, dnr.root_cause, dnr.root_file, pv.pv_description"&_