Skip to content
Snippets Groups Projects
Select Git revision
  • 55386d6ce2ccfe96ed5cba9cd53db937d48476b5
  • 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

questiontestform.php

Blame
    • Matti Harjula's avatar
      55386d6c
      Compiled PRTs... and Markdown support. · 55386d6c
      Matti Harjula authored
      TODO: throw away olf PRTs, match trace and debug messages, fix unit-tests, fix some sample materials that broke due to not allowing any errors in the whole PRT not even the parts not visited. Code tidy...
      55386d6c
      History
      Compiled PRTs... and Markdown support.
      Matti Harjula authored
      TODO: throw away olf PRTs, match trace and debug messages, fix unit-tests, fix some sample materials that broke due to not allowing any errors in the whole PRT not even the parts not visited. Code tidy...
    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