diff options
author | Jochen Topf <jochen@topf.org> | 2014-05-21 09:42:36 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-05-21 09:42:36 +0200 |
commit | c9a8b267ba890836cce28fecab99e6e8b2faeeb7 (patch) | |
tree | da8037de335a3a90677e27efc56373ca1ba43949 /web/public | |
parent | a1565c88ea9726c06fcb3cad4956c5fc6980faa0 (diff) | |
download | taginfo-c9a8b267ba890836cce28fecab99e6e8b2faeeb7.tar taginfo-c9a8b267ba890836cce28fecab99e6e8b2faeeb7.tar.gz |
Fix title popups on tables.
Diffstat (limited to 'web/public')
-rw-r--r-- | web/public/js/taginfo.js | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js index 0604e03..23a0ad7 100644 --- a/web/public/js/taginfo.js +++ b/web/public/js/taginfo.js @@ -407,6 +407,23 @@ var flexigrid_defaults = { onSuccess : function(grid) { init_tipsy(); grid.fixHeight(); + jQuery('th *[title]').tipsy({ opacity: 1, delayIn: 500, gravity: 's', offset: 3 }); + jQuery('.sDiv input[title]').tipsy({ opacity: 1, delayIn: 500, gravity: 'e' }); + jQuery('input.qsbox').bind('keydown', function(event) { + if (event.which == 27) { // esc + this.blur(); + return false; + } + if (event.which == 9) { // tab + jQuery('input#search').focus(); + return false; + } + }); + jQuery('div.bDiv:visible').bind('click', function(event) { + var row = jQuery(event.target).parents('tr'); + jQuery('div.bDiv:visible tr').removeClass('trOver'); + jQuery(row).addClass('trOver'); + }); } }; @@ -429,23 +446,6 @@ function create_flexigrid(domid, options) { var me = jQuery('#' + domid), rp = calculate_flexigrid_rp(me.parents('.resize,.ui-tabs-panel')); grids[domid] = me.flexigrid(jQuery.extend({}, flexigrid_defaults, texts.flexigrid, options, { rp: rp })); - jQuery('th *[title]').tipsy({ opacity: 1, delayIn: 500, gravity: 's', offset: 3 }); - jQuery('.sDiv input[title]').tipsy({ opacity: 1, delayIn: 500, gravity: 'e' }); - jQuery('input.qsbox').bind('keydown', function(event) { - if (event.which == 27) { // esc - this.blur(); - return false; - } - if (event.which == 9) { // tab - jQuery('input#search').focus(); - return false; - } - }); - jQuery('div.bDiv:visible').bind('click', function(event) { - var row = jQuery(event.target).parents('tr'); - jQuery('div.bDiv:visible tr').removeClass('trOver'); - jQuery(row).addClass('trOver'); - }); } else { // grid does exist, make sure it has the right size resize_grid(domid); |