Browse Source

#892 Refresh the "multi-select" when picking a value with the "hierarchical picker", inside a search form.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3223 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 năm trước cách đây
mục cha
commit
12ee87faa4
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      js/extkeywidget.js

+ 5 - 0
js/extkeywidget.js

@@ -546,6 +546,11 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
 					$('#'+me.id).trigger('extkeychange');
 					$('#'+me.id).trigger('change');
 				}
+				if ( $('#'+me.id).hasClass('multiselect'))
+				{
+					$('#'+me.id+' option').each(function() { this.selected = ($(this).attr('value') == iObjectId); });
+					$('#'+me.id).multiselect('refresh');
+				}
 				$('#label_'+me.id).focus();
 				me.ajax_request = null;
 			},