Commit df618d0b authored by Betoule Marc's avatar Betoule Marc
Browse files

check_all and clear in web interface, bug correction in launcher_pbs

parent 18ab2f39
......@@ -246,10 +246,11 @@ echo $PYTHONPATH
f.close()
subprocess.Popen(['qsub',jobfile]).communicate()[0]
if server:
print 'launching the scheduler'
sched_proxy = mgr.get_scheduler()
sched_proxy.run()
if server:
print 'launching the scheduler'
sched_proxy = mgr.get_scheduler()
sched_proxy.run()
......
......@@ -54,13 +54,21 @@ function edit_tag (str_lst_tag){
}
// uncheck segments
function uncheck (){
lst = document.getElementsByName('checkbox');
function uncheck (object){
lst = document.getElementsByName(object);
for (var i=0;i<lst.length;i++){
lst[i].checked=0;
}
}
// check products
function check_all (){
lst = document.getElementsByName('checkbox_p');
for (var i=0;i<lst.length;i++){
lst[i].checked=1;
}
}
// delete tag from sql base
function del_tag() {
var seltag = document.getElementById('se_tag_id') ;
......
......@@ -286,7 +286,7 @@ class Web:
html += '</td><td></td></tr></table>'
html += '<p class="buttons">'
html += '<a class="icon apply" href="javascript:filter();"><small>Apply</small></a>'
html += '<a class="icon clear" href="javascript:uncheck();"><small>Clear</small></a>'
html += '<a class="icon clear" href="javascript:uncheck(\'checkbox\');"><small>Clear</small></a>'
html += '<a class="icon tag" href="javascript:edit_tag(\'%s\');"><small>Tag</small></a>'%str_lst_tag
html += '<a class="icon delete" href="javascript:del_seg();"><small>Delete</small></a>'
html += '<a class="icon log" href="log?logdir=%s"><small>Browse log</small></a>'%(l[0][1].split("seg")[0]+"log")
......@@ -369,7 +369,10 @@ class Web:
html = html_tmp + '<a class="icon home" href="/%s/"><small>Home</small></a>'%(self.name)
html += '<h1> Data products for %s tasks in segment %s </h1>' % (status, seg)
html += '<div class="list"><p>Directory : %s</p> %d <span class="%s">%s</span> tasks<br><br> '%( currdir,len(l), status, status)
html += '<a class="icon delete" href="javascript:del_prod(%d)"><small>Delete</small></a><ul>'%(int(segid))
html += '<a class="icon delete" href="javascript:del_prod(%d);"><small>Delete</small></a>'%(int(segid))
html += '<a class="icon apply" href="javascript:check_all();"><small>Check all</small></a>'
html += '<a class="icon clear" href="javascript:uncheck(\'checkbox_p\');"><small>Clear</small></a>'
html += '<ul>'
for e in l:
html += '<li><a href="pipedir?segid=%s&directory=%s"> %s </a><INPUT type="checkbox" name="checkbox_p" id="%d"></li>'%(segid,os.path.relpath(e[0],start=currdir),e[0],e[1])
html += '</ul></div></body></html>'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment