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
the resources_selected plugin always starts up toggled off, then any action (adding...
[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
b544174
..
a784288
100644
(file)
--- a/
plugins/resources_selected/static/js/resources_selected.js
+++ b/
plugins/resources_selected/static/js/resources_selected.js
@@
-31,7
+31,7
@@
var self = this;
this.table = this.elmt('table').dataTable({
var self = this;
this.table = this.elmt('table').dataTable({
-
// sDom: "<'row'<'col-md-5'l><'col-md-1'r><'col-md-6'f>>t<'row'<'col-md-5'i><'col-md
-7'p>>",
+
sDom: "<'row'<'col-xs-5'l><'col-xs-1'r><'col-xs-6'f>>t<'row'<'col-xs-5'i><'col-xs
-7'p>>",
sPaginationType: 'full_numbers',
bAutoWidth: true,
//bJQueryUI : true,
sPaginationType: 'full_numbers',
bAutoWidth: true,
//bJQueryUI : true,
@@
-70,17
+70,17
@@
do_refresh: function(e)
{
do_refresh: function(e)
{
- throw 'Not implemented';
+ throw '
resource_selected.do_refresh
Not implemented';
},
do_reset: function(e)
{
},
do_reset: function(e)
{
- throw 'Not implemented';
+ throw '
resources_selected.do_reset
Not implemented';
},
do_clear_annotations: function(e)
{
},
do_clear_annotations: function(e)
{
- throw 'Not implemented';
+ throw '
resources_selected.do_clear_annotations
Not implemented';
},
/************************** GUI MANIPULATION **************************/
},
/************************** GUI MANIPULATION **************************/
@@
-120,7
+120,12
@@
var button = '';
var row;
var button = '';
var row;
-
+
+ // make sure the change is visible : toggle on the whole plugin
+ // this might hae to be made an 'auto-toggle' option of this plugin..
+ // also it might be needed to be a little finer-grained here
+ this.toggle_on();
+
switch(data.request) {
case FIELD_REQUEST_ADD_RESET:
case FIELD_REQUEST_REMOVE_RESET:
switch(data.request) {
case FIELD_REQUEST_ADD_RESET:
case FIELD_REQUEST_REMOVE_RESET: