1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/2c479e68b9b8/ changeset: r5367:2c479e68b9b8 user: jgoecks date: 2011-04-12 15:35:36 summary: Fix bugs introduced in 03c02d86d011. affected #: 1 file (235 bytes) --- a/static/scripts/trackster.js Mon Apr 11 14:17:35 2011 -0400 +++ b/static/scripts/trackster.js Tue Apr 12 09:35:36 2011 -0400 @@ -207,13 +207,15 @@ $.extend(params, extra_params); // Add track filters to params. - var filter_names = []; - var filters = this.track.filters_manager.filters; - for (var i = 0; i < filters.length; i++) { - filter_names[filter_names.length] = filters[i].name; + if (this.track.filters_manager) { + var filter_names = []; + var filters = this.track.filters_manager.filters; + for (var i = 0; i < filters.length; i++) { + filter_names[filter_names.length] = filters[i].name; + } + params.filter_cols = JSON.stringify(filter_names); } - params.filter_cols = JSON.stringify(filter_names); - + // Do request. var manager = this; return $.getJSON(this.track.data_url, params, function (result) { @@ -1678,29 +1680,31 @@ // // Update filtering UI. - var filters = track.filters_manager.filters; - for (var f = 0; f < filters.length; f++) { - filters[f].update_ui_elt(); - } + if (track.filters_manager) { + var filters = track.filters_manager.filters; + for (var f = 0; f < filters.length; f++) { + filters[f].update_ui_elt(); + } - // Determine if filters are available; this is based on the example feature. - var filters_available = false; - if (track.example_feature) { - for (var f = 0; f < filters.length; f++) { - if (filters[f].applies_to(track.example_feature)) { - filters_available = true; - break; + // Determine if filters are available; this is based on the example feature. + var filters_available = false; + if (track.example_feature) { + for (var f = 0; f < filters.length; f++) { + if (filters[f].applies_to(track.example_feature)) { + filters_available = true; + break; + } } } - } - // If filter availability changed, hide filter div if necessary and update menu. - if (track.filters_available !== filters_available) { - track.filters_available = filters_available; - if (!track.filters_available) { - track.filters_div.hide(); + // If filter availability changed, hide filter div if necessary and update menu. + if (track.filters_available !== filters_available) { + track.filters_available = filters_available; + if (!track.filters_available) { + track.filters_div.hide(); + } + track.make_name_popup_menu(); } - track.make_name_popup_menu(); } } }, 50); Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.