diff --git a/dist/js/embed-containers.js b/dist/js/embed-containers.js index c9a9b96..461400e 100755 --- a/dist/js/embed-containers.js +++ b/dist/js/embed-containers.js @@ -1202,7 +1202,7 @@ var EntityEmbed = EntityEmbed || {}; scope.currentEmbedType = scope.modalCtrl.scope.currentEmbedType = getEmbedTypeByObjectType(currentEmbedTypeName, scope.embedTypes); scope.currentEmbedType.clearForm(scope.currentEmbedType.$view); scope.currentEmbedType.$view.show(); - scope.$embedTypeSelect.val(embedType); + scope.$embedTypeSelect.val(currentEmbedTypeName); headerText = scope.headerText; diff --git a/dist/js/embed-containers.min.js b/dist/js/embed-containers.min.js index 67efe43..965b793 100755 --- a/dist/js/embed-containers.min.js +++ b/dist/js/embed-containers.min.js @@ -1,5 +1,5 @@ !function(){EntityEmbed=EntityEmbed||{};var e={};e.modal="null",e["modal/modal_audio.html"]='
',e["modal/modal_audioProgram.html"]='',e["modal/modal_confirmation.html"]=' ',e["modal/modal_customText.html"]='',e["modal/modal_externalLink.html"]='',e["modal/modal_facebook.html"]='',e["modal/modal_globalBuzz.html"]='',e["modal/modal_iframe.html"]='',e["modal/modal_image.html"]='',e["modal/modal_instagram.html"]='',e["modal/modal_main.html"]=' ',e["modal/modal_newsletterSubscribe.html"]='',e["modal/modal_relatedLink.html"]='',e["modal/modal_slideshow.html"]='',e["modal/modal_twitter.html"]='',e["modal/modal_video.html"]='',EntityEmbed.templateCache=e}();var EntityEmbed=EntityEmbed||{};!function(){function e(e){e=$.extend(!0,{},r,e);var t={timeout:e.timeout,crossDomain:!0,type:e.methodType,dataType:"json",jsonp:!1,url:e.domainName+e.path};return e.headers?(e.headers["x-auth-token"]=e.auth_token,e.headers["x-debug"]=e.debug,t.headers=e.headers,t.processData=!1,t.contentType=!1,t.data=e.data,"function"==typeof e.xhr&&(t.xhr=e.xhr)):(e.data.debug=e.debug,e.data.auth_token=e.auth_token,t.data=JSON.stringify(e.data)),$.ajax(t)}function t(t){return t.methodType="POST",e(t)}function o(t){return t.methodType="POST",e(t)}function i(t){return t.methodType="POST",t.timeout=0,e(t)}function a(){return r.auth_token}function l(){return r.domainName}function n(e){r.auth_token=e}function d(e){r.domainName=e,r.domainName.endsWith("/")||(r.domainName+="/")}var r={data:{},debug:0,auth_token:"",domainName:"",path:"",timeout:15e3},s=/^[^.]*staging[^.]*\.|\.dev$/,m=s.test(window.location.host);m&&(r.auth_token="abc123",r.debug=1),EntityEmbed.apiService={set:t,get:o,uploadFile:i,setAuthToken:n,getAuthToken:a,getDomainName:l,setDomainName:d}}();var EntityEmbed=EntityEmbed||{};!function(){function e(e){var t=e.closest("[contenteditable]"),o=t.data("plugin_"+i);return o}function t(e){var t=e.closest("[contenteditable]"),o=t.data("plugin_"+i+a);return o}var o={},i="mediumInsert",a="EntityEmbeds",l="entity-embed-active",n="medium-editor-button-active",d="medium-insert-images-toolbar",r="medium-insert-images-toolbar2",s=".entity-embed-secondary-toolbar-locator",m="entityEmbedToolbarEventsReady",c="entity-embed-toolbar",u=function(e,t){var o=c;t?(o+=" medium-insert-images-toolbar medium-editor-toolbar medium-editor-stalker-toolbar medium-toolbar-arrow-under medium-editor-toolbar-active ",o+=t+"StyleToolbar"):o+=" medium-insert-images-toolbar2 medium-editor-toolbar medium-toolbar-arrow-after medium-editor-toolbar-active";var i='