dd84577465aa0ad1e3e7c0b343cf89767497d7e9 kate Tue May 13 11:24:54 2014 -0700 jsbeautifier diff --git src/hg/js/hgGateway.js src/hg/js/hgGateway.js index c57baf1..8aad415 100644 --- src/hg/js/hgGateway.js +++ src/hg/js/hgGateway.js @@ -1,32 +1,27 @@ -$(document).ready(function() -{ - suggestBox.init(document.orgForm.db.value, $('#suggestTrack').length > 0, - function(item) { +$(document).ready(function() { + suggestBox.init(document.orgForm.db.value, $('#suggestTrack').length > 0, function(item) { $('#positionDisplay').text(item.id); $('#position').val(item.id); - }, - function(position) { + }, function(position) { $('#positionDisplay').text(position); $('#position').val(position); - } - ); + }); // Default the image width to current browser window width (#2633). var ele = $('input[name=pix]'); if (ele.length && (!ele.val() || ele.val().length == 0)) { ele.val(calculateHgTracksWidth()); } if ($("#suggestTrack").length) { // Make sure suggestTrack is visible when user chooses something via gene select (#3484). $(document.mainForm).submit(function(event) { if ($('#hgFindMatches').length) { var track = $("#suggestTrack").val(); if (track) { $("").appendTo($(event.currentTarget)); } } }); } }); -