Bug fixes: (a) trackster: don't cache tile if undefined and (b) define init_operation_buttons differently to prevent ordering issue. Pack scripts.

This commit is contained in:
Jeremy Goecks
2011-10-07 15:24:27 -04:00
parent 05b79d357a
commit 7efc30c01e
3 changed files with 6 additions and 6 deletions
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -2627,16 +2627,16 @@ extend(TiledTrack.prototype, Drawable.prototype, Track.prototype, {
}
}
// If we can draw now, do so
// If we can draw now, do so.
if ( can_draw_now ) {
extend( tile_data, more_tile_data );
var tile = track.draw_tile(tile_data, track.mode, resolution, tile_index, w_scale, seq_data);
track.tile_cache.set(key, tile);
// Don't show if no tile
// Don't cache, show if no tile.
if (tile !== undefined) {
track.tile_cache.set(key, tile);
track.show_tile(tile, parent_element, w_scale);
}
return tile
return tile;
}
// Can't draw now, so trigger another redraw when the data is ready
+1 -1
View File
@@ -117,7 +117,7 @@
%endfor
// Init operation buttons.
var init_operation_buttons = function() {
function init_operation_buttons() {
// Initialize operation buttons.
$('input[name=operation]:submit').each(function() {
$(this).click( function() {