projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8d5a16a
)
Pman.Lock.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 18 Nov 2010 09:26:42 +0000
(17:26 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 18 Nov 2010 09:26:42 +0000
(17:26 +0800)
Pman.Lock.js
patch
|
blob
|
history
diff --git
a/Pman.Lock.js
b/Pman.Lock.js
index
c90f868
..
823d687
100644
(file)
--- a/
Pman.Lock.js
+++ b/
Pman.Lock.js
@@
-4,27
+4,34
@@
*
* usage:
*
*
* usage:
*
- Pman.Lock.lock( {
- table : 'Product',
- id : 123,
- success : function() { ..show dialog etc..... }
- });
- Pman.Lock.unlock( {
- table : 'Product',
- id : 123
- });
- *
+
* new Pman.Lock( {
table : 'Product',
id : 123,
success : function(lock) { ..show dialog etc.....
* new Pman.Lock( {
table : 'Product',
id : 123,
success : function(lock) { ..show dialog etc.....
- *
- * ... dostuff..
- * lock.unlock()
- * }
+
+ ... dostuff..
+ ... send _lock=XXX to Roo updated code..
+
+ lock.unlock() -- we dont care about the result..
+ }
}
*
*
}
*
*
+ *
+ * call :
+ * try and lock it..
+ * baseURL + /Core/Lock/lock?on_id=...&on_table=...
+ * - returns id or an array of who has the locks.
+ *
+ * Force an unlock after a warning..
+ * baseURL + /Core/Lock/lock?on_id=...&on_table=...&force=1
+ * - returns id..
+ *
+ * Unlock - call when window is closed..
+ * baseURL + /Core/Lock/unlock?on_id=...&on_table=...&force=1
+ * - returns jerr or jok
+ *
*/
Pman.Lock = function (cfg) {
this.cfg = cfg;
*/
Pman.Lock = function (cfg) {
this.cfg = cfg;