Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

Commit

Permalink
Small popup changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshu committed Jul 26, 2014
1 parent 23eff2c commit 5096201
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/js/popup.js
Expand Up @@ -249,13 +249,14 @@ function add_bang(bang) {
document.getElementById("search_button_homepage").className = 'selected';

if (inp.value === '') {
//inp.style.color = '#000';
inp.style.color = '#000';
inp.value = bang + ' ';
inp.focus();
} else {
var found_bangs = bang_regex.exec(inp.value);
if (found_bangs !== null) {
inp.value = inp.value.replace(found_bangs[0], bang);
inp.focus();
} else {
inp.value += bang;
search();
Expand Down

0 comments on commit 5096201

Please sign in to comment.