X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/95f83648504b6552ff3cbf956f55c6bf5f542a9b..84c1c7eb511a9776480c863cee42954853cb0e96:/modules/metadataEditor/transformations.js?ds=sidebyside
diff --git a/modules/metadataEditor/transformations.js b/modules/metadataEditor/transformations.js
index 8202a9f..4b55488 100644
--- a/modules/metadataEditor/transformations.js
+++ b/modules/metadataEditor/transformations.js
@@ -1,24 +1,24 @@
-define(['libs/jquery-1.9.1.min'], function($) {
-
- 'use strict';
-
- return {
- getMetadata: function(xml) {
- var toret = {};
- $(xml).find('metadata').children().each(function() {
- var node = $(this);
- toret[this.nodeName.split(':')[1].toLowerCase()] = node.text();
- })
- return toret;
- },
- getXML: function(metadata) {
- var meta = $('\n');
- _.each(_.keys(metadata), function(key) {
- meta.append('\n\t' + metadata[key] + '');
- });
- meta.append('\n');
- return vkbeautify.xml(meta.html());
- }
- }
-
+define(['libs/jquery-1.9.1.min'], function($) {
+
+ 'use strict';
+
+ return {
+ getMetadata: function(xml) {
+ var toret = {};
+ $(xml).find('metadata').children().each(function() {
+ var node = $(this);
+ toret[this.nodeName.split(':')[1].toLowerCase()] = node.text();
+ });
+ return toret;
+ },
+ getXML: function(metadata) {
+ var meta = $('\n');
+ _.each(_.keys(metadata), function(key) {
+ meta.append('\n\t' + metadata[key] + '');
+ });
+ meta.append('\n');
+ return vkbeautify.xml(meta.html());
+ }
+ };
+
});
\ No newline at end of file