00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 function set_lock(lock)
00026 {
00027 SendEvent('approve', 'set_lock', 'lock='+lock);
00028 }
00029
00030 function commit()
00031 {
00032 var form = document.approve;
00033 var log = form.log.value;
00034 var recursive = '';
00035 if (form.rec_commit!=null && form.rec_commit.checked)
00036 {
00037 var msg = T_("You are commiting all the changes in the subnodes as well !");
00038 if (!confirm(msg)) return;
00039 recursive = 'true';
00040 }
00041 SendEvent('approve', 'commit', 'log='+log+';recursive='+recursive);
00042 }
00043
00044 function revert()
00045 {
00046 var form = document.approve;
00047 var recursive = '';
00048 if (form.rec_revert!=null && form.rec_revert.checked)
00049 {
00050 var msg = T_("You are reverting all the changes in the subnodes as well !");
00051 if (!confirm(msg)) return;
00052 recursive = 'true';
00053 }
00054 SendEvent('approve', 'revert', 'recursive='+recursive);
00055 }