X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Lock.js;h=9636ada9b685aa3e8005488f9879dd835bff7eb5;hp=ab19e2bf05fae8aea46b089b0b0ae94a4ca740f6;hb=HEAD;hpb=750d2510ef7819c3e0404a4cfcf8b031e9364c7a diff --git a/Pman.Lock.js b/Pman.Lock.js index ab19e2bf..9636ada9 100644 --- a/Pman.Lock.js +++ b/Pman.Lock.js @@ -97,11 +97,12 @@ Roo.apply(Pman.Lock.prototype, { }, - unlock : function() { - Pman.Request({ + 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");