Your IP : 216.73.216.95


Current Path : /var/www/ljmtc/cbt/message/amd/build/
Upload File :
Current File : /var/www/ljmtc/cbt/message/amd/build/message_notification_preference.min.js.map

{"version":3,"sources":["../src/message_notification_preference.js"],"names":["define","$","NotificationPreference","SELECTORS","PREFERENCE_KEY","MessageNotificationPreference","element","userId","call","prototype","Object","create","constructor","getPreferenceKey","root","find","attr"],"mappings":"AAyBAA,OAAM,gDAAC,CAAC,QAAD,CAAW,sCAAX,CAAD,CACE,SAASC,CAAT,CAAYC,CAAZ,CAAoC,IAEpCC,CAAAA,CAAS,CAAG,CACZC,cAAc,CAAE,uBADJ,CAFwB,CAYpCC,CAA6B,CAAG,SAASC,CAAT,CAAkBC,CAAlB,CAA0B,CAC1DL,CAAsB,CAACM,IAAvB,CAA4B,IAA5B,CAAkCF,CAAlC,CAA2CC,CAA3C,CACH,CAduC,CAmBxCF,CAA6B,CAACI,SAA9B,CAA0CC,MAAM,CAACC,MAAP,CAAcT,CAAsB,CAACO,SAArC,CAA1C,CAKAJ,CAA6B,CAACI,SAA9B,CAAwCG,WAAxC,CAAsDP,CAAtD,CAQAA,CAA6B,CAACI,SAA9B,CAAwCI,gBAAxC,CAA2D,UAAW,CAClE,MAAO,MAAKC,IAAL,CAAUC,IAAV,CAAeZ,CAAS,CAACC,cAAzB,EAAyCY,IAAzC,CAA8C,qBAA9C,CACV,CAFD,CAIA,MAAOX,CAAAA,CACV,CAtCK,CAAN","sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.\n\n/**\n * Controls the preference for an individual notification type on the\n * message preference page.\n *\n * @module     core_message/message_notification_preference\n * @class      message_notification_preference\n * @package    message\n * @copyright  2016 Ryan Wyllie <ryan@moodle.com>\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\ndefine(['jquery', 'core_message/notification_preference'],\n        function($, NotificationPreference) {\n\n    var SELECTORS = {\n        PREFERENCE_KEY: '[data-preference-key]',\n    };\n\n    /**\n     * Constructor for the Preference.\n     *\n     * @param {object} element jQuery object root element of the preference\n     * @param {int} userId The current user id\n     */\n    var MessageNotificationPreference = function(element, userId) {\n        NotificationPreference.call(this, element, userId);\n    };\n\n    /**\n     * Clone the parent prototype.\n     */\n    MessageNotificationPreference.prototype = Object.create(NotificationPreference.prototype);\n\n    /**\n     * Set constructor.\n     */\n    MessageNotificationPreference.prototype.constructor = MessageNotificationPreference;\n\n    /**\n     * Get the unique prefix key that identifies this user preference.\n     *\n     * @method getPreferenceKey\n     * @return {string}\n     */\n    MessageNotificationPreference.prototype.getPreferenceKey = function() {\n        return this.root.find(SELECTORS.PREFERENCE_KEY).attr('data-preference-key');\n    };\n\n    return MessageNotificationPreference;\n});\n"],"file":"message_notification_preference.min.js"}