Skip to content

Commit

Permalink
fix namespace collision; work on #1
Browse files Browse the repository at this point in the history
  • Loading branch information
kltm committed Mar 17, 2016
1 parent 6196a8d commit 557b77f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions lib/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,26 +333,25 @@ var filter_table = function(elt_id, table_id, img_src, repaint_func, label){
jQuery('#' + elt_id).append(cont.to_string());

// Also, attach a spinner.
var spinner = null;
var spin = null;
if( anchor.img_src ){
jQuery('#' + elt_id).append('  ');
spinner = new spinner(elt_id, anchor.img_src,
{
visible_p: false
});
spin = new spinner(elt_id, anchor.img_src, {
visible_p: false
});
}

ll('widget addition done');

// Make the clear button active.
jQuery('#' + clear_button.get_id()).click(function(){
ll('click call');
if( spinner ){ spinner.show(); }
if( spin ){ spin.show(); }
jQuery('#' + input.get_id()).val('');
trs.show();
// Recolor after filtering.
anchor.repaint_func(table_id);
if( spinner ){ spinner.hide(); }
if( spin ){ spin.hide(); }
});

// Cache information about the table.
Expand All @@ -362,7 +361,7 @@ var filter_table = function(elt_id, table_id, img_src, repaint_func, label){
// Make the table filter active.
jQuery('#' + input.get_id()).keyup(function(){

if( spinner ){ spinner.show(); }
if( spin ){ spin.show(); }

var stext = jQuery(this).val();

Expand Down Expand Up @@ -397,7 +396,7 @@ var filter_table = function(elt_id, table_id, img_src, repaint_func, label){
// Recolor after filtering.
anchor.repaint_func(table_id);

if( spinner ){ spinner.hide(); }
if( spin ){ spin.hide(); }
});
};

Expand Down

0 comments on commit 557b77f

Please sign in to comment.