Your IP : 216.73.216.95


Current Path : /var/www/ljmtc/cbt/admin/tool/usertours/amd/build/
Upload File :
Current File : /var/www/ljmtc/cbt/admin/tool/usertours/amd/build/managetours.min.js.map

{"version":3,"sources":["../src/managetours.js"],"names":["define","$","ajax","str","notification","manager","removeTour","e","preventDefault","targetUrl","currentTarget","attr","get_strings","key","component","then","s","confirm","window","location","catch","setup","delegate"],"mappings":"AAQAA,OAAM,8BACN,CAAC,QAAD,CAAW,WAAX,CAAwB,UAAxB,CAAoC,mBAApC,CADM,CAEN,SAASC,CAAT,CAAYC,CAAZ,CAAkBC,CAAlB,CAAuBC,CAAvB,CAAqC,CACjC,GAAIC,CAAAA,CAAO,CAAG,CAOVC,UAAU,CAAE,oBAASC,CAAT,CAAY,CACpBA,CAAC,CAACC,cAAF,GACA,GAAIC,CAAAA,CAAS,CAAGR,CAAC,CAACM,CAAC,CAACG,aAAH,CAAD,CAAmBC,IAAnB,CAAwB,MAAxB,CAAhB,CACAR,CAAG,CAACS,WAAJ,CAAgB,CACZ,CACIC,GAAG,CAAS,yBADhB,CAEIC,SAAS,CAAG,gBAFhB,CADY,CAKZ,CACID,GAAG,CAAS,4BADhB,CAEIC,SAAS,CAAG,gBAFhB,CALY,CASZ,CACID,GAAG,CAAS,KADhB,CAEIC,SAAS,CAAG,QAFhB,CATY,CAaZ,CACID,GAAG,CAAS,IADhB,CAEIC,SAAS,CAAG,QAFhB,CAbY,CAAhB,EAkBCC,IAlBD,CAkBM,SAASC,CAAT,CAAY,CACdZ,CAAY,CAACa,OAAb,CAAqBD,CAAC,CAAC,CAAD,CAAtB,CAA2BA,CAAC,CAAC,CAAD,CAA5B,CAAiCA,CAAC,CAAC,CAAD,CAAlC,CAAuCA,CAAC,CAAC,CAAD,CAAxC,CAA6C,UAAW,CACpDE,MAAM,CAACC,QAAP,CAAkBV,CACrB,CAFD,CAKH,CAxBD,EAyBCW,KAzBD,EA0BH,CApCS,CA2CVC,KAAK,CAAE,gBAAW,CACdpB,CAAC,CAAC,MAAD,CAAD,CAAUqB,QAAV,CAAmB,0BAAnB,CAA6C,OAA7C,CAAsDjB,CAAO,CAACC,UAA9D,CACH,CA7CS,CAAd,CAgDA,MAAuD,CAMnDe,KAAK,CAAEhB,CAAO,CAACgB,KANoC,CAQ1D,CA3DK,CAAN","sourcesContent":["/**\n * Tour management code.\n *\n * @module     tool_usertours/managetours\n * @class      managetours\n * @package    tool_usertours\n * @copyright  2016 Andrew Nicols <andrew@nicols.co.uk>\n */\ndefine(\n['jquery', 'core/ajax', 'core/str', 'core/notification'],\nfunction($, ajax, str, notification) {\n    var manager = {\n        /**\n         * Confirm removal of the specified tour.\n         *\n         * @method  removeTour\n         * @param   {EventFacade}   e   The EventFacade\n         */\n        removeTour: function(e) {\n            e.preventDefault();\n            var targetUrl = $(e.currentTarget).attr('href');\n            str.get_strings([\n                {\n                    key:        'confirmtourremovaltitle',\n                    component:  'tool_usertours'\n                },\n                {\n                    key:        'confirmtourremovalquestion',\n                    component:  'tool_usertours'\n                },\n                {\n                    key:        'yes',\n                    component:  'moodle'\n                },\n                {\n                    key:        'no',\n                    component:  'moodle'\n                }\n            ])\n            .then(function(s) {\n                notification.confirm(s[0], s[1], s[2], s[3], function() {\n                    window.location = targetUrl;\n                });\n\n                return;\n            })\n            .catch();\n        },\n\n        /**\n         * Setup the tour management UI.\n         *\n         * @method          setup\n         */\n        setup: function() {\n            $('body').delegate('[data-action=\"delete\"]', 'click', manager.removeTour);\n        }\n    };\n\n    return /** @alias module:tool_usertours/managetours */ {\n        /**\n         * Setup the tour management UI.\n         *\n         * @method          setup\n         */\n        setup: manager.setup\n    };\n});\n"],"file":"managetours.min.js"}