mirror of
https://github.com/processwire/processwire.git
synced 2025-08-17 20:11:46 +02:00
Fix issue processwire/processwire-issues#1303 PageFrontEdit limit to single-line input on 1-line text fields
This commit is contained in:
@@ -112,11 +112,12 @@ function PageFrontEditInit($) {
|
||||
return false;
|
||||
});
|
||||
|
||||
if(t.hasClass('pw-edit-InputfieldText')) {
|
||||
if(t.is('span')) { // single-line text
|
||||
// via @canrau
|
||||
copy.keydown(function(e) {
|
||||
if(e.keyCode == 13){
|
||||
e.preventDefault();
|
||||
$(this).blur();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user