Pman.Lock.js
[Pman.Core] / Pman.Lock.js
index d5b5a6c..a47c25e 100644 (file)
@@ -46,7 +46,7 @@ Roo.apply(Pman.Lock.prototype, {
         force = force || 0;
         var _t = this
         Pman.Request({
-            url : baseURL + 'Core/Lock/lock',
+            url : baseURL + '/Core/Lock/lock',
             params : {
                 on_table : this.cfg.table,
                 on_id : this.cfg.id,
@@ -58,11 +58,11 @@ Roo.apply(Pman.Lock.prototype, {
             success : function(data)
             {
                 
-                
+                Roo.log(data);
                 if (!force && typeof(data) == 'object') {
                     _t.confirmBreak(data);
                 }
-                
+                _t.lock_id = data;
                 _t.cfg.success(_t); //dont care about scope..
                 
                 
@@ -79,7 +79,7 @@ Roo.apply(Pman.Lock.prototype, {
             msg += '<br/>' + p.name + ' at ' + p.lock_created ;
         })
         var _t = this;
-        Roo.messageBox.confirm("Confirm breaking locks", msg, function(r) {
+        Roo.MessageBox.confirm("Confirm breaking locks", msg, function(r) {
             if (r != 'yes') {
                 return;
             }
@@ -94,7 +94,7 @@ Roo.apply(Pman.Lock.prototype, {
     
     unlock : function() {
         Pman.Request({
-            url : baseURL + 'Core/Lock/unlock',
+            url : baseURL + '/Core/Lock/unlock',
             params : {
                 id : this.lock_id
             },