(function($){
var debug=false;
-// debug=true
+ debug=true
// routing calls
$.fn.Hazelnut = function( method ) {
fnDrawCallback: function() { hazelnut_draw_callback.call(object, options); }
};
// the intention here is that options.datatables_options as coming from the python object take precedence
- $.extend(actual_options, options.datatables_options );
+// XXX DISABLED by jordan: was causing errors in datatables.js $.extend(actual_options, options.datatables_options );
this.table = $('#hazelnut-' + options.plugin_uuid).dataTable(actual_options);
/* Setup the SelectAll button in the dataTable header */
/* catch up with the last column if checkboxes were requested */
if (options.checkboxes) {
var checked = '';
+ // xxx problem is, we don't get this 'sliver' thing set apparently
if (typeof(row['sliver']) != 'undefined') { /* It is equal to null when <sliver/> is present */
checked = 'checked ';
hazelnut.current_resources.push(row['urn']);
*/
function hazelnut_filter (oSettings, aData, iDataIndex) {
var cur_query = this.current_query;
+ if (!cur_query) return true;
var ret = true;
/* We have an array of filters : a filter is an array (key op val)