(function (global) { 'use strict'; $("#featured-button__select").on("click", function (event) { event.preventDefault(); global.blur_backdrop(); global.dialogs.featured.showModal(); }); $('.media-select--featured').click(function (elem) { var id = $(this).data().id; var title = $(this).data().title; var thumb_url = $(this).data().thumb; $(".association_content_item_id").val(id); $('.content-item-button__selection').remove(); $('.content-item-button').append( '
' + '' + '
' + 'Selected Media: ' + title + '
' ); global.unblur_backdrop(); global.dialogs.featured.close(); }); }(this));