Просмотр исходного кода

#661 and #662 Could not create a user request (or ?) as soon as the autocomplete feature gets active

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2615 a333f486-631f-4898-b8df-5754b55c2be0
romainq 12 лет назад
Родитель
Сommit
61c2c5556a
2 измененных файлов с 4 добавлено и 0 удалено
  1. 1 0
      js/jquery.autocomplete.js
  2. 3 0
      js/wizardhelper.js

+ 1 - 0
js/jquery.autocomplete.js

@@ -361,6 +361,7 @@ $.Autocompleter = function(input, options) {
 			$.ajax({
 				// try to leverage ajaxQueue plugin to abort previous requests
 				mode: "abort",
+				type: "POST",
 				// limit abortion to this input
 				port: "autocomplete" + input.name,
 				dataType: options.dataType,

+ 3 - 0
js/wizardhelper.js

@@ -134,6 +134,9 @@ function WizardHelper(sClass, sFormPrefix, sState)
 			//console.log(sFieldCode);
 			this.UpdateCurrentValue(sCleanFieldCode);
 		}
+		// Remove unnecessary stuff
+		this.m_oData.m_oDefaultValue = {};
+		this.m_oData.m_oAllowedValues = {};
 	}
 	
 	this.UpdateWizardToJSON = function ()