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

Commit 07f70c2

Browse files
committed
Update build
1 parent 8768390 commit 07f70c2

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

dist/create.js

+11-3
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ See http://createjs.org for more information
412412
return;
413413
}
414414

415+
var widget = this;
416+
415417
jQuery('.create-ui-tool-metadataarea', this.element).midgardMetadata({
416418
vie: this.vie,
417419
localize: this.options.localize,
@@ -420,6 +422,10 @@ See http://createjs.org for more information
420422
createElement: this.element,
421423
editableNs: 'midgardeditable'
422424
});
425+
426+
this.element.on('midgardeditabledisable', function () {
427+
jQuery('.create-ui-tool-metadataarea', widget.element).hide();
428+
});
423429
},
424430

425431
_enableEdit: function () {
@@ -3084,9 +3090,11 @@ window.midgardCreate.localize = function (id, language) {
30843090
widget.options.changed(widget.editor.getData());
30853091
});
30863092
this.editor.on('configLoaded', function() {
3087-
jQuery.each(widget.options.editorOptions, function(optionName, option) {
3088-
widget.editor.config[optionName] = option;
3089-
});
3093+
if (widget.options.editorOptions !== undefined) {
3094+
jQuery.each(widget.options.editorOptions, function(optionName, option) {
3095+
widget.editor.config[optionName] = option;
3096+
});
3097+
}
30903098
});
30913099
},
30923100

0 commit comments

Comments
 (0)