Use javascript:void(0) rather than # in tool section links to avoid unwanted scrolling to top of page.

This commit is contained in:
Jeremy Goecks
2012-04-12 15:36:06 -04:00
parent c3f962b932
commit 55a672937f
2 changed files with 2 additions and 2 deletions
@@ -10,7 +10,7 @@ templates['panel_section'] = template(function (Handlebars,depth0,helpers,partia
stack1 = foundHelper || depth0.id;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "id", { hash: {} }); }
buffer += escapeExpression(stack1) + "\">\n <a href=\"#\"><span>";
buffer += escapeExpression(stack1) + "\">\n <a href=\"javascript:void(0)\"><span>";
foundHelper = helpers.name;
stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
@@ -1,5 +1,5 @@
<div class="toolSectionTitle" id="title_{{id}}">
<a href="#"><span>{{name}}</span></a>
<a href="javascript:void(0)"><span>{{name}}</span></a>
</div>
<div id="{{id}}" class="toolSectionBody" style="display: none; ">
<div class="toolSectionBg"></div>