From 03df8c5a289b668ff5080cd717e816e9923e12b4 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 26 Mar 2015 15:26:45 +0000 Subject: [PATCH] fhemweb.js: textedit-long: add dialog-close function git-svn-id: https://svn.fhem.de/fhem/trunk@8291 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/fhemweb.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index c1b7cc74a..fc3670711 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -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 )