mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix creating new trackster viz, fix autocomplete grouping by first character
This commit is contained in:
@@ -491,11 +491,10 @@ $.Autocompleter.Cache = function(options) {
|
||||
var value = options.formatMatch(rawValue, i+1, options.data.length);
|
||||
if ( value === false )
|
||||
continue;
|
||||
|
||||
var firstChar = value.charAt(0).toLowerCase();
|
||||
// if no lookup array for this character exists, look it up now
|
||||
if( !stMatchSets[firstChar] )
|
||||
stMatchSets[firstChar] = [];
|
||||
|
||||
if( !stMatchSets[value] ) {
|
||||
stMatchSets[value] = [];
|
||||
}
|
||||
|
||||
// if the match is a string
|
||||
var row = {
|
||||
@@ -505,7 +504,7 @@ $.Autocompleter.Cache = function(options) {
|
||||
};
|
||||
|
||||
// push the current match into the set list
|
||||
stMatchSets[firstChar].push(row);
|
||||
stMatchSets[value].push(row);
|
||||
|
||||
// keep track of minChars zero items
|
||||
if ( nullData++ < options.max ) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -30,7 +30,7 @@ ${h.css( "history", "autocomplete_tagging" )}
|
||||
|
||||
<%def name="center_panel()">
|
||||
<div class="unified-panel-header" unselectable="on">
|
||||
<div class="unified-panel-header-inner">Trackster Visualization | ${config['title']}
|
||||
<div class="unified-panel-header-inner" id="title">
|
||||
<a id="save-button" class="panel-header-button right-float" href="javascript:void(0);">Save</a>
|
||||
<a id="refresh-button" class="panel-header-button right-float" href="javascript:void(0);" onclick="view.update_options();return false;">Refresh</a>
|
||||
</div>
|
||||
@@ -75,7 +75,6 @@ ${h.css( "history", "autocomplete_tagging" )}
|
||||
</div>
|
||||
</div>
|
||||
<form action="#" onsubmit="view.update_options();return false;">
|
||||
## <input name="title" id="title" value="${config.title}" />
|
||||
<div id="show-hide-move">
|
||||
<ul id="sortable-ul"></ul>
|
||||
</div>
|
||||
@@ -96,6 +95,7 @@ ${h.js( 'galaxy.base', 'galaxy.panels', "json2", "jquery", "jquery.event.drag",
|
||||
$(function() {
|
||||
|
||||
%if config:
|
||||
$("#title").text("${config.get('title') | h}");
|
||||
view = new View( "${config.get('chrom')}", "${config.get('title') | h}", "${config.get('vis_id')}", "${config.get('dbkey')}" );
|
||||
%for track in config.get('tracks'):
|
||||
view.add_track(
|
||||
@@ -106,6 +106,7 @@ ${h.js( 'galaxy.base', 'galaxy.panels', "json2", "jquery", "jquery.event.drag",
|
||||
%else:
|
||||
continue_fn = function() {
|
||||
view = new View( undefined, $("#new-title").val(), undefined, $("#new-dbkey").val() );
|
||||
$("#title").text($("#new-title").val());
|
||||
init();
|
||||
hide_modal();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user