X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Lock.js;h=9636ada9b685aa3e8005488f9879dd835bff7eb5;hp=b44696d717e5f89f2c10f4586ba3846ee5859d79;hb=HEAD;hpb=89eadd8b1a022300fcfc1b95a13dee07bee5bf79 diff --git a/Pman.Lock.js b/Pman.Lock.js index b44696d7..9636ada9 100644 --- a/Pman.Lock.js +++ b/Pman.Lock.js @@ -97,11 +97,12 @@ Roo.apply(Pman.Lock.prototype, { }, - unlock : function() { + unlock : function(id) { + id = id || this.id; new Pman.Request({ url : baseURL + '/Core/Lock/unlock', params : { - id : this.id + id : id }, failure : function() { Roo.MessageBox.alert("Error", "UnLock Request failed, you may get a warning when trying to edit again");