1 //<script type="text/javascript">
11 success : function(lock) { ..show dialog etc.....
14 ... send _lock=XXX to Roo updated code..
16 lock.unlock() -- we dont care about the result..
24 * baseURL + /Core/Lock/lock?on_id=...&on_table=...
25 * - returns id or an array of who has the locks.
27 * Force an unlock after a warning..
28 * baseURL + /Core/Lock/lock?on_id=...&on_table=...&force=1
31 * Unlock - call when window is closed..
32 * baseURL + /Core/Lock/unlock?on_id=...&on_table=...&force=1
33 * - returns jerr or jok
36 Pman.Lock = function (cfg) {
41 Roo.apply(Pman.Lock.prototype, {
43 attemptLock : function()
47 url : baseURL + 'Core/Lock/lock',
52 failure : function() {
53 Roo.MessageBox.alert("Error", "Lock Request failed, please try again");
55 success : function(data)
59 if (typeof(data) == 'object') {
60 _t.confirmBreak(data);
63 _t.cfg.success(_t); //dont care about scope..
69 confirmBreak : function (ar)
73 Roo.each(ar, function(p) {
84 url : baseURL + 'Core/Lock/unlock',
89 failure : function() {
90 Roo.MessageBox.alert("Error", "Lock Request failed, please try again");
92 success : function(data)
96 if (typeof(data) == 'object') {
97 _t.confirmBreak(data);
100 _t.cfg.success(_t); //dont care about scope..