this.cfg = cfg;
var _t = this;
Pman.Request({
- url : baseURL + 'Core/Lock.php',
+ url : baseURL + 'Core/Lock/lock',
params : {
on_table : cfg.table,
on_id : cfg.id
{
Roo.log(data);
+ if (typeof(data) == 'object') {
+ this.confirmBreak();
+
+
+
+ }
+
_t.cfg.success.call(_t,_t);
},
+
+
+ attempt : function()
+ {
+ var _t = this
+ Pman.Request({
+ url : baseURL + 'Core/Lock/lock',
+ params : {
+ on_table : cfg.table,
+ on_id : cfg.id
+ },
+ failure : function() {
+ Roo.MessageBox.alert("Error", "Lock Request failed, please try again");
+ },
+ success : function(data)
+ {
+ Roo.log(data);
+
+ if (typeof(data) == 'object') {
+ this.confirmBreak();
+
+
+
+ }
+
+ _t.cfg.success(_t); //dont care about scope..
+
+
+ }
+ })
+ }
+
+
unlock : function() {
}