git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
plugins: supporting columns adding/removing + passed query instead of uuid as parameters
[myslice.git]
/
manifold
/
js
/
manifold-query.js
diff --git
a/manifold/js/manifold-query.js
b/manifold/js/manifold-query.js
index
77925c4
..
1dcd56c
100644
(file)
--- a/
manifold/js/manifold-query.js
+++ b/
manifold/js/manifold-query.js
@@
-117,6
+117,16
@@
INSERT INTO object VALUES(field=value)
rec(query, callback, data, null);
}
rec(query, callback, data, null);
}
+ this.select = function(field)
+ {
+ this.fields.push(field);
+ }
+
+ this.unselect = function(field)
+ {
+ this.fields = $.grep(this.fields, function(x) { return x != field; });
+ }
+
// we send queries as a json string now
// this.as_POST = function() {
// return {'action': this.action, 'object': this.object, 'timestamp': this.timestamp,
// we send queries as a json string now
// this.as_POST = function() {
// return {'action': this.action, 'object': this.object, 'timestamp': this.timestamp,