mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 04:36:36 +00:00
fhemweb.js: textedit-long: add dialog-close function
git-svn-id: https://svn.fhem.de/fhem/trunk@8291 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ce3d863c26
commit
03df8c5a28
@ -631,19 +631,21 @@ FW_createTextField(elName, devName, vArr, currVal, set, params, cmd)
|
||||
$('#editdlg').dialog(
|
||||
{ modal:true, closeOnEscape:true, width:$(window).width()*3/4,
|
||||
maxHeight:$(window).height()*3/4,
|
||||
close:function(){ $('#editdlg').remove(); },
|
||||
buttons:[
|
||||
{ text:"Cancel", click:function(){
|
||||
$('#editdlg').remove();
|
||||
$(this).dialog('close');
|
||||
addBlur();
|
||||
}},
|
||||
{ text:"OK", click:function(){
|
||||
if(cm)
|
||||
$("#td_longText").val(cm.getValue());
|
||||
var res=$("#td_longText").val();
|
||||
$('#editdlg').remove();
|
||||
$(this).dialog('close');
|
||||
$(inp).val(res);
|
||||
addBlur();
|
||||
}}]});
|
||||
}}]
|
||||
});
|
||||
};
|
||||
|
||||
if( is_long )
|
||||
|
Loading…
x
Reference in New Issue
Block a user