Permalink
Browse files

update #329 applied to metabolicMine

  • Loading branch information...
radekstepan committed Jun 3, 2013
1 parent d0a1724 commit 501e221ff1804d387cd3de7e69d99fc2fd943d41
Showing with 0 additions and 42 deletions.
  1. +0 −42 metabolicmine/webapp/resources/webapp/begin.jsp
@@ -342,39 +342,6 @@
</center>
</div>
</form>
<script type="text/javascript">
(function() {
var index = function(value) {
switch (value) {
case "${ids}":
case "${WEB_PROPERTIES['begin.searchBox.example']}":
case "":
// if placeholder text or no text in place, take us to the index
jQuery(location).attr('href', "/${WEB_PROPERTIES['webapp.path']}/keywordSearchResults.do?searchBag=");
return false;
}
return true;
}
var button = jQuery('#mainSearchForm a'),
input = jQuery("input#actionsInput");
button.click(function(e){
if( index(input.val()) ) {
document.getElementById("mainSearchForm").submit();
}
});
input.keypress(function(e){
if(e.which == 13){
if( index(input.val()) ) {
document.getElementById("mainSearchForm").submit();
}
}
});
})()
</script>
<div style="clear:both;"></div>
</div>
</div>
@@ -685,15 +652,6 @@
jQuery(this).val('');
}
});
// associate functions with search that redir to a keyword objects listing instead of search results
jQuery('#mainSearchButton').click(function() {
// if placeholder text in place, take us elsewhere
if (jQuery("#actionsInput").val() == placeholder) {
jQuery(location).attr('href', "/${WEB_PROPERTIES['webapp.path']}/keywordSearchResults.do?searchBag=");
return false;
}
});
</script>
<!-- /newBegin.jsp -->

0 comments on commit 501e221

Please sign in to comment.