2013-04-12 Miguel de Dios <miguel.dedios@artica.es>

* include/javascript/pandora_modules.js: fixed the change the
	type of module when select network or local component.
	
	Fixes: #3610671
	
	* general/header.php: cleaned source code style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7973 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-04-12 11:12:20 +00:00
parent 18d9b97544
commit f079153730
2 changed files with 9 additions and 9 deletions

View File

@ -112,7 +112,7 @@ function configure_modules_form () {
$("#textarea_description").attr ("value", js_html_entity_decode (data["description"])); $("#textarea_description").attr ("value", js_html_entity_decode (data["description"]));
$("#textarea_configuration_data").val(configuration_data); $("#textarea_configuration_data").val(configuration_data);
$("#component_loading").hide (); $("#component_loading").hide ();
$("#id_module_type option[value="+data["type"]+"]").select (1); $("#id_module_type").val(data["type"]);
$("#text-max").attr ("value", data["max"]); $("#text-max").attr ("value", data["max"]);
$("#text-min").attr ("value", data["min"]); $("#text-min").attr ("value", data["min"]);
// Workaround to update the advanced select control from html and ajax // Workaround to update the advanced select control from html and ajax
@ -264,7 +264,7 @@ function configure_modules_form () {
function (data, status) { function (data, status) {
$("#text-name").attr ("value", js_html_entity_decode (data["name"])); $("#text-name").attr ("value", js_html_entity_decode (data["name"]));
$("#textarea_description").attr ("value", js_html_entity_decode (data["description"])); $("#textarea_description").attr ("value", js_html_entity_decode (data["description"]));
$("#id_module_type option[value="+data["type"]+"]").select (1); $("#id_module_type").val(data["type"]);
$("#text-max").attr ("value", data["max"]); $("#text-max").attr ("value", data["max"]);
$("#text-min").attr ("value", data["min"]); $("#text-min").attr ("value", data["min"]);
// Workaround to update the advanced select control from html and ajax // Workaround to update the advanced select control from html and ajax