mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Bandaid for entity editing in Firefox, fix GH-188, GH-175
This commit is contained in:
parent
a611b78dbc
commit
e85861fb79
@ -104,7 +104,13 @@ function createTrackCell(trackinfo) {
|
||||
function editEntity() {
|
||||
|
||||
var namefield = document.getElementById('main_entity_name');
|
||||
namefield.contentEditable = "plaintext-only";
|
||||
try {
|
||||
namefield.contentEditable = "plaintext-only"; // not supported by Firefox
|
||||
}
|
||||
catch (e) {
|
||||
namefield.contentEditable = true;
|
||||
}
|
||||
|
||||
|
||||
namefield.addEventListener('keydown',function(e){
|
||||
// dont allow new lines, done on enter
|
||||
|
Loading…
Reference in New Issue
Block a user