mirror of
https://github.com/vrana/adminer.git
synced 2025-08-26 15:54:34 +02:00
Specify coding style and follow it
This commit is contained in:
@@ -238,9 +238,13 @@ function editFields() {
|
||||
els = qsa('[name$="[type]"]');
|
||||
for (var i = 0; i < els.length; i++) {
|
||||
mixin(els[i], {
|
||||
onfocus: function () { lastType = selectValue(this); },
|
||||
onfocus: function () {
|
||||
lastType = selectValue(this);
|
||||
},
|
||||
onchange: editingTypeChange,
|
||||
onmouseover: function (event) { helpMouseover.call(this, event, getTarget(event).value, 1) },
|
||||
onmouseover: function (event) {
|
||||
helpMouseover.call(this, event, getTarget(event).value, 1);
|
||||
},
|
||||
onmouseout: helpMouseout
|
||||
});
|
||||
}
|
||||
|
@@ -884,7 +884,8 @@ function addEvent(el, action, handler) {
|
||||
* @param HTMLElement
|
||||
*/
|
||||
function focus(el) {
|
||||
setTimeout(function () { // this has to be an anonymous function because Firefox passes some arguments to setTimeout callback
|
||||
setTimeout(function () {
|
||||
// this has to be an anonymous function because Firefox passes some arguments to setTimeout callback
|
||||
el.focus();
|
||||
}, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user