only clear input on ?

This commit is contained in:
Cade Scroggins
2016-02-01 10:33:19 -08:00
parent 88cb8cc14b
commit 841f00f49e
+1 -1
View File
@@ -129,6 +129,7 @@
}); });
Commander.searchHelp.innerHTML = helpMessage; Commander.searchHelp.innerHTML = helpMessage;
Commander.searchText.value = '';
} else { } else {
Commander.location = 'https://www.google.com/search?q=' + q; Commander.location = 'https://www.google.com/search?q=' + q;
@@ -139,7 +140,6 @@
window.location.href = Commander.location; window.location.href = Commander.location;
} }
Commander.searchText.value = '';
e.preventDefault(); e.preventDefault();
} }
}; };