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: RESET state now distirnguished ADD and REMOVE events, hazelnut and googlemap...
[myslice.git]
/
plugins
/
resources_selected
/
static
/
js
/
resources_selected.js
diff --git
a/plugins/resources_selected/static/js/resources_selected.js
b/plugins/resources_selected/static/js/resources_selected.js
index
5659670
..
56a49af
100644
(file)
--- a/
plugins/resources_selected/static/js/resources_selected.js
+++ b/
plugins/resources_selected/static/js/resources_selected.js
@@
-120,12
+120,14
@@
var row;
var row;
- if (data.request == FIELD_REQUEST_RESET) {
- // find line
- // delete it
- }
-
switch(data.request) {
switch(data.request) {
+ case FIELD_REQUEST_ADD_RESET:
+ case FIELD_REQUEST_REMOVE_RESET:
+ // find line and delete it
+ row = this.find_row(data.value);
+ if (row)
+ this.table.fnDeleteRow(row.nTr);
+ return;
case FIELD_REQUEST_CHANGE:
action = 'UPDATE';
break;
case FIELD_REQUEST_CHANGE:
action = 'UPDATE';
break;