mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-05 07:03:24 +01:00
Set onfouces on input notes and link form.
This commit is contained in:
parent
8f05606449
commit
df4100cbc4
@ -75,7 +75,12 @@ mindplot.widget.LinkEditor = new Class({
|
|||||||
select.inject(form);
|
select.inject(form);
|
||||||
|
|
||||||
// Add Input ...
|
// Add Input ...
|
||||||
var input = new Element('input', {placeholder: 'http://www.example.com/',type:'url',required:true});
|
var input = new Element('input', {
|
||||||
|
placeholder: 'http://www.example.com/',
|
||||||
|
type:'url',
|
||||||
|
required:true,
|
||||||
|
autofocus:''
|
||||||
|
});
|
||||||
if (model.getValue() != null)
|
if (model.getValue() != null)
|
||||||
input.value = model.getValue();
|
input.value = model.getValue();
|
||||||
|
|
||||||
|
@ -67,7 +67,11 @@ mindplot.widget.NoteEditor = new Class({
|
|||||||
var form = new Element('form', {'action': 'none', 'id':'noteFormId'});
|
var form = new Element('form', {'action': 'none', 'id':'noteFormId'});
|
||||||
|
|
||||||
// Add textarea ...
|
// Add textarea ...
|
||||||
var textArea = new Element('textarea', {placeholder: 'Write your note here ...',required:true});
|
var textArea = new Element('textarea',
|
||||||
|
{placeholder: 'Write your note here ...',
|
||||||
|
required:true,
|
||||||
|
autofocus:'autofocus'
|
||||||
|
});
|
||||||
if (model.getValue() != null)
|
if (model.getValue() != null)
|
||||||
textArea.value = model.getValue();
|
textArea.value = model.getValue();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user