mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Move grid element initialization to main body to prevent it from happening too early. Pack scripts.
This commit is contained in:
@@ -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
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user