Small fix to hide the "reading article" message (with the spinner) when searching for titles, in the case it would still be there because of an error when reading the previous article

This commit is contained in:
mossroy 2013-08-23 12:35:38 +02:00
parent ebf70bd05c
commit da5d4d1ea0

View File

@ -25,7 +25,7 @@
// http://requirejs.org/docs/api.html#define
define(function(require) {
var $ = require('jquery');
// Evopedia javascript dependencies
@ -44,6 +44,7 @@ define(function(require) {
$('#searchTitles').on('click', function(e) {
searchTitlesFromPrefix($('#prefix').val());
$("#welcomeText").hide();
$("#readingArticle").hide();
});
$('#formTitleSearch').on('submit', function(e) {
document.getElementById("searchTitles").click();