projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug [0000084] Low inventory items not marked properly.
[fa-stable.git]
/
js
/
inserts.js
diff --git
a/js/inserts.js
b/js/inserts.js
index 27329ea3e8a0fedd6299f6a326fbb5f9b0d2f730..0eb4369f2224f8308070435beee347731544a89c 100644
(file)
--- a/
js/inserts.js
+++ b/
js/inserts.js
@@
-161,7
+161,19
@@
var inserts = {
}
if (e.className == 'combo' || e.className == 'combo2') {
_set_combo_input(e);
}
if (e.className == 'combo' || e.className == 'combo2') {
_set_combo_input(e);
- }
+ }
+ else
+ if(e.type == 'text' ) {
+ e.onkeydown = function(ev) {
+ ev = ev||window.event;
+ key = ev.keyCode||ev.which;
+ if(key == 13) {
+ if(e.className == 'searchbox') e.onblur();
+ return false;
+ }
+ return true;
+ }
+ }
},
'input.combo2,input[aspect="fallback"]':
function(e) {
},
'input.combo2,input[aspect="fallback"]':
function(e) {