return this.each(function() {
var $this = $(this);
/* Events */
- $(this).on('show.Datatables', methods.show);
+ $this.on('show.Datatables', methods.show);
/* An object that will hold private variables and methods */
var hazelnut = new Hazelnut (options);
- $(this).data('Hazelnut', hazelnut);
+ $this.data('Hazelnut', hazelnut);
var query_channel = '/query/' + options.query_uuid + '/changed';
var update_channel = '/update-set/' + options.query_uuid;
function Hazelnut(options) {
/* member variables */
this.options = options;
- /* constructor */
- this.table = null;
// xxx thierry : initialize this here - it was not, I expect this relied on set_query somehow..
//this.current_query = null;
this.current_query=manifold.find_query(this.options.query_uuid);
this.table = $('#hazelnut-' + options.plugin_uuid).dataTable(actual_options);
/* Setup the SelectAll button in the dataTable header */
+ /* xxx not sure this is still working */
var oSelectAll = $('#datatableSelectAll-'+ options.plugin_uuid);
oSelectAll.html("<span class='ui-icon ui-icon-check' style='float:right;display:inline-block;'></span>Select All");
oSelectAll.button();
/***************************************************************************
* Private methods
+ * xxx I'm not sure why this should not be methods in the Hazelnut class above
***************************************************************************/
/**