This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -412,6 +412,8 @@ See http://createjs.org for more information
412
412
return ;
413
413
}
414
414
415
+ var widget = this ;
416
+
415
417
jQuery ( '.create-ui-tool-metadataarea' , this . element ) . midgardMetadata ( {
416
418
vie : this . vie ,
417
419
localize : this . options . localize ,
@@ -420,6 +422,10 @@ See http://createjs.org for more information
420
422
createElement : this . element ,
421
423
editableNs : 'midgardeditable'
422
424
} ) ;
425
+
426
+ this . element . on ( 'midgardeditabledisable' , function ( ) {
427
+ jQuery ( '.create-ui-tool-metadataarea' , widget . element ) . hide ( ) ;
428
+ } ) ;
423
429
} ,
424
430
425
431
_enableEdit : function ( ) {
@@ -3084,9 +3090,11 @@ window.midgardCreate.localize = function (id, language) {
3084
3090
widget . options . changed ( widget . editor . getData ( ) ) ;
3085
3091
} ) ;
3086
3092
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
+ }
3090
3098
} ) ;
3091
3099
} ,
3092
3100
You can’t perform that action at this time.
0 commit comments