Made 'good' locale array be populated based on svg-editor.html, made namespaces only be added on serialization when used

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1377 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2010-02-11 21:24:15 +00:00
parent 507e50767f
commit eb8b9ab5e6
3 changed files with 37 additions and 25 deletions

View File

@@ -2907,7 +2907,11 @@ function svg_edit_setup() {
// This happens when the page is loaded
$(function() {
svgCanvas = svg_edit_setup();
put_locale(svgCanvas);
var good_langs = [];
$('#lang_select option').each(function() {
good_langs.push(this.value);
});
put_locale(svgCanvas, null, good_langs);
try{
json_encode = function(obj){