Skip to content
Snippets Groups Projects
Select Git revision
  • 691bc2727466723bb2b3563bb7892ec9876eb9d0
  • master default
  • fix-remote-url_v4.9.1
  • fix-remote-url_v4.8.3
  • fix-remote-url_v4.8.x
  • fix-remote-url_v4.7.x
  • fix-remote-url_v4.6.0
  • fix-remote-urls
8 results

settings.php

Blame
  • infobanner.min.js 1.49 KiB
    /**
     * Theme Boost Campus - JS code for feature information banner
     *
     * @module     theme_boost_campus/infobanner
     * @copyright  2020 Kathrin Osswald, Ulm University <kathrin.osswald@uni-ulm.de>
     * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
     */
    define("theme_boost_campus/infobanner",["jquery","core/str","core/modal_factory","core/modal_events","core/notification"],(function($,str,ModalFactory,ModalEvents,Notification){return{init:function(showconfirmationdialogue){!function(showconfirmationdialogue){var stringsPromise=str.get_strings([{key:"confirmation",component:"theme_boost_campus"},{key:"closingperpetualinfobanner",component:"theme_boost_campus"},{key:"yes_close",component:"theme_boost_campus"}]),modalPromise=ModalFactory.create({type:ModalFactory.types.SAVE_CANCEL});$("#themeboostcampusperpinfobanner .close").click((function(event){event.stopPropagation(),"1"==showconfirmationdialogue?$.when(stringsPromise,modalPromise).then((function(strings,modal){return modal.setTitle(strings[0]),modal.setBody(strings[1]),modal.setSaveButtonText(strings[2]),modal.getRoot().on(ModalEvents.save,(function(){M.util.set_user_preference("theme_boost_campus_infobanner_dismissed",!0),$("#themeboostcampusperpinfobanner").alert("close")})),modal.show(),modal})).fail(Notification.exception):(M.util.set_user_preference("theme_boost_campus_infobanner_dismissed",!0),$("#themeboostcampusperpinfobanner").alert("close"))}))}(showconfirmationdialogue)}}}));
    
    //# sourceMappingURL=infobanner.min.js.map