diff options
author | Rouslan Placella <rouslan@placella.com> | 2012-04-10 19:46:51 +0400 |
---|---|---|
committer | Rouslan Placella <rouslan@placella.com> | 2012-04-11 00:50:34 +0400 |
commit | 9c167049683d3a54f21e353dc87f3f22b912d00d (patch) | |
tree | 659f71eb0e43cd8fe399b23d7accf4b2073418f3 /js/tbl_select.js | |
parent | a753ac9b8031593f4d8390e004d9169a31ee0c6f (diff) |
Speed-up selectors
Diffstat (limited to 'js/tbl_select.js')
-rw-r--r-- | js/tbl_select.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tbl_select.js b/js/tbl_select.js index 87dee553a0..c97c1689d1 100644 --- a/js/tbl_select.js +++ b/js/tbl_select.js @@ -86,9 +86,9 @@ $(document).ready(function() { // Following section is related to the 'function based search' for geometry data types. // Initialy hide all the open_gis_editor spans - $('.open_search_gis_editor').hide(); + $('span.open_search_gis_editor').hide(); - $('.geom_func').bind('change', function() { + $('select.geom_func').bind('change', function() { var $geomFuncSelector = $(this); var binaryFunctions = [ @@ -136,7 +136,7 @@ $(document).ready(function() { } // if the chosen function's output is a geometry, enable GIS editor - var $editorSpan = $geomFuncSelector.parents('tr').find('.open_search_gis_editor'); + var $editorSpan = $geomFuncSelector.parents('tr').find('span.open_search_gis_editor'); if ($.inArray($geomFuncSelector.val(), outputGeomFunctions) >= 0){ $editorSpan.show(); } else { @@ -145,7 +145,7 @@ $(document).ready(function() { }); - $('.open_search_gis_editor').live('click', function(event) { + $('span.open_search_gis_editor').live('click', function(event) { event.preventDefault(); var $span = $(this); |