2009-09-09 Miguel de Dios <miguel.dedios@artica.es>

* include/javascript/pandora_modules.js: clean code.
	* include/javascript/pandora.js: fix bug in ie6 that it remove the "\n".




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1926 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-09-09 17:22:16 +00:00
parent de2df6cb04
commit 895a958299
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2009-09-09 Miguel de Dios <miguel.dedios@artica.es>
* include/javascript/pandora_modules.js: clean code.
* include/javascript/pandora.js: fix bug in ie6 that it remove the "\n".
2009-09-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_network_components.php: add bool param $localComponent

View File

@ -31,6 +31,7 @@ function html_entity_decode (str) {
return "";
var ta = document.createElement ("textarea");
ta.innerHTML = str.replace (/</g, "&lt;").replace (/>/g,"&gt;");
return ta.value;
}

View File

@ -68,9 +68,11 @@ function configure_modules_form () {
"id_module_component" : this.value
},
function (data, status) {
configuration_data = data['data'].replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&amp;/g,'&');
$("#text-name").attr ("value", html_entity_decode (data["name"]));
$("#textarea_description").attr ("value", html_entity_decode (data["description"]));
$("#textarea_configuration_data").attr ("value", html_entity_decode (data["data"]));
$("#textarea_configuration_data").attr ("value", configuration_data);
$("#component_loading").hide ();
$("#id_module_type").change ();
},