mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Timestamp widget fixes:
- Remove new line before timestamp - Fix focus not going to where it should
This commit is contained in:
parent
c88e3b8a69
commit
b381a9aa0c
@ -59,16 +59,11 @@ var et2_timestamper = (function(){ "use strict"; return et2_button.extend([],
|
||||
|
||||
this._insert_text();
|
||||
|
||||
if (!this._super.apply(this, arguments))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
},
|
||||
|
||||
_insert_text: function() {
|
||||
var text = "\n";
|
||||
var text = "";
|
||||
var now = new Date();
|
||||
text += date(egw.preference('dateformat') + ' ' + (egw.preference("timeformat") === "12" ? "h:ia" : "H:i")+' ',now);
|
||||
|
||||
@ -137,6 +132,7 @@ var et2_timestamper = (function(){ "use strict"; return et2_button.extend([],
|
||||
input.focus();
|
||||
}
|
||||
input.scrollTop = scrollPos;
|
||||
input.focus();
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user