Move grid element initialization to main body to prevent it from happening too early. Pack scripts.

This commit is contained in:
Jeremy Goecks
2013-02-17 14:59:02 -05:00
parent fc387566ca
commit 283cb406f9
4 changed files with 15 additions and 14 deletions
-12
View File
@@ -4,18 +4,6 @@
// not appended to the identifier of a nested array.
jQuery.ajaxSettings.traditional = true;
// Initialize grid objects on load.
$(document).ready(function() {
init_grid_elements();
init_grid_controls();
// Initialize text filters to select text on click and use normal font when user is typing.
$('input[type=text]').each(function() {
$(this).click(function() { $(this).select(); } )
.keyup(function () { $(this).css("font-style", "normal"); });
});
});
/**
* A Galaxy grid.
*/
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+13
View File
@@ -129,6 +129,19 @@
cur_page: ${cur_page_num},
num_pages: ${num_pages}
});
// Initialize grid objects on load.
// FIXME: use a grid view object eventually.
$(document).ready(function() {
init_grid_elements();
init_grid_controls();
// Initialize text filters to select text on click and use normal font when user is typing.
$('input[type=text]').each(function() {
$(this).click(function() { $(this).select(); } )
.keyup(function () { $(this).css("font-style", "normal"); });
});
});
</script>
</%def>