Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Jan 19, 2015
1 parent 8768390 commit 07f70c2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions dist/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ See http://createjs.org for more information
return;
}

var widget = this;

jQuery('.create-ui-tool-metadataarea', this.element).midgardMetadata({
vie: this.vie,
localize: this.options.localize,
Expand All @@ -420,6 +422,10 @@ See http://createjs.org for more information
createElement: this.element,
editableNs: 'midgardeditable'
});

this.element.on('midgardeditabledisable', function () {
jQuery('.create-ui-tool-metadataarea', widget.element).hide();
});
},

_enableEdit: function () {
Expand Down Expand Up @@ -3084,9 +3090,11 @@ window.midgardCreate.localize = function (id, language) {
widget.options.changed(widget.editor.getData());
});
this.editor.on('configLoaded', function() {
jQuery.each(widget.options.editorOptions, function(optionName, option) {
widget.editor.config[optionName] = option;
});
if (widget.options.editorOptions !== undefined) {
jQuery.each(widget.options.editorOptions, function(optionName, option) {
widget.editor.config[optionName] = option;
});
}
});
},

Expand Down

0 comments on commit 07f70c2

Please sign in to comment.