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
fix the pagination area for hazelnut with bootstrap 3
[myslice.git]
/
plugins
/
hazelnut
/
__init__.py
diff --git
a/plugins/hazelnut/__init__.py
b/plugins/hazelnut/__init__.py
index
9509dc0
..
e8ecfce
100644
(file)
--- a/
plugins/hazelnut/__init__.py
+++ b/
plugins/hazelnut/__init__.py
@@
-5,13
+5,15
@@
class Hazelnut (Plugin):
# set checkboxes if a final column with checkboxes is desired
# pass columns as the initial set of columns
# if None then this is taken from the query's fields
# set checkboxes if a final column with checkboxes is desired
# pass columns as the initial set of columns
# if None then this is taken from the query's fields
- def __init__ (self, query=None, query_all=None, checkboxes=False, columns=None, datatables_options={}, **settings):
+ def __init__ (self, query=None, query_all=None,
+ checkboxes=False, columns=None,
+ datatables_options={}, **settings):
Plugin.__init__ (self, **settings)
self.query = query
# Until we have a proper way to access queries in Python
self.query_all = query_all
self.query_all_uuid = query_all.query_uuid if query_all else None
Plugin.__init__ (self, **settings)
self.query = query
# Until we have a proper way to access queries in Python
self.query_all = query_all
self.query_all_uuid = query_all.query_uuid if query_all else None
- self.checkboxes
=
checkboxes
+ self.checkboxes
=
checkboxes
# XXX We need to have some hidden columns until we properly handle dynamic queries
if columns is not None:
self.columns=columns
# XXX We need to have some hidden columns until we properly handle dynamic queries
if columns is not None:
self.columns=columns
@@
-47,10
+49,16
@@
class Hazelnut (Plugin):
] ,
'css_files': [ "css/hazelnut.css" ,
"css/dataTables.bootstrap.css",
] ,
'css_files': [ "css/hazelnut.css" ,
"css/dataTables.bootstrap.css",
+ # hopefully temporary, when/if datatables supports sPaginationType=bootstrap3
+ # for now we use full_numbers\, with our own ad hoc css
+ "css/dataTables.full_numbers.css",
],
}
return reqs
# the list of things passed to the js plugin
def json_settings_list (self):
],
}
return reqs
# the list of things passed to the js plugin
def json_settings_list (self):
- return ['plugin_uuid', 'domid', 'query_uuid', 'query_all_uuid', 'checkboxes', 'datatables_options', 'hidden_columns']
+ return ['plugin_uuid', 'domid',
+ 'query_uuid', 'query_all_uuid',
+ 'checkboxes', 'datatables_options',
+ 'hidden_columns']