瀏覽代碼

N.534 Cannot create a parent ticket from the ticket edition form. More generally, the object creation dialog box (opened by the mean of the PLUS button) fails as soon as any of the mandatory fields is an HTML field. Regression introduced in iTop 2.3.0, and due to HTML field edition widget (aka CKEditor)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4496 a333f486-631f-4898-b8df-5754b55c2be0
romainq 8 年之前
父節點
當前提交
0781b107c7
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      js/extkeywidget.js

+ 10 - 0
js/extkeywidget.js

@@ -364,6 +364,16 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
 				{
 					if (this.name != '')
 					{
+						if ($(this).hasClass('htmlEditor'))
+						{
+							var sId = $(this).attr('id');
+							var editorInst = CKEDITOR.instances[sId];
+							if (editorInst)
+							{
+								editorInst.updateElement();
+							}
+						}
+
 						theMap[this.name] = this.value;
 					}
 				}