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:
parent
de2df6cb04
commit
895a958299
|
@ -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
|
||||
|
|
|
@ -31,6 +31,7 @@ function html_entity_decode (str) {
|
|||
return "";
|
||||
var ta = document.createElement ("textarea");
|
||||
ta.innerHTML = str.replace (/</g, "<").replace (/>/g,">");
|
||||
|
||||
return ta.value;
|
||||
}
|
||||
|
||||
|
|
|
@ -68,9 +68,11 @@ function configure_modules_form () {
|
|||
"id_module_component" : this.value
|
||||
},
|
||||
function (data, status) {
|
||||
configuration_data = data['data'].replace(/</g,'<').replace(/>/g,'>').replace(/&/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 ();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue