Template:Team:UC Davis/KO3D
From 2013.igem.org
(Difference between revisions)
Line 281: | Line 281: | ||
if($("#mutantwidget .dataMax") .length == 1) | if($("#mutantwidget .dataMax") .length == 1) | ||
{ | { | ||
- | $('#mw_zoomoptionstable').append("<tr><td>80000</td></tr>"); | + | $('#mw_zoomoptionstable').append("<tr><td onClick>80000</td></tr>"); |
$('#mw_zoomoptionstable').append("<tr><td>10000</td></tr>"); | $('#mw_zoomoptionstable').append("<tr><td>10000</td></tr>"); | ||
$('#mw_zoomoptionstable').append("<tr><td>2000</td></tr>"); | $('#mw_zoomoptionstable').append("<tr><td>2000</td></tr>"); | ||
Line 348: | Line 348: | ||
$('#mw_zoommenu td').click( | $('#mw_zoommenu td').click( | ||
function() { | function() { | ||
- | dataMax = $(this).parseInt(); | + | if(!$(this).hasClass("selected")) |
+ | { $('#mw_zoommenu td').removeClass("selected"); | ||
+ | $(this).addClass("selected"); | ||
+ | $('#mw_zoommenu td').mouseout(); | ||
+ | dataMax = $(this).parseInt(); | ||
+ | } | ||
if (widget_mode == "2D") | if (widget_mode == "2D") | ||
{$('#mw_optionsmenu td').eq(0).mouseover().click();} | {$('#mw_optionsmenu td').eq(0).mouseover().click();} |
Revision as of 01:27, 28 October 2013