__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/**
* Policy actions.
*
* @module tool_policy/policyactions
* @copyright 2018 Sara Arjona (sara@moodle.com)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define("tool_policy/policyactions",["jquery","core/ajax","core/notification","core/modal"],(function($,Ajax,Notification,Modal){var PolicyActions=function(root){this.registerEvents(root)};return PolicyActions.prototype.registerEvents=function(root){root.on("click",(function(e){e.preventDefault();var request={methodname:"tool_policy_get_policy_version",args:{versionid:$(this).data("versionid"),behalfid:$(this).data("behalfid")}},modalTitle=$.Deferred(),modalBody=$.Deferred(),modal=Modal.create({title:modalTitle,body:modalBody,large:!0,removeOnClose:!0,show:!0}).catch(Notification.exception),promises=Ajax.call([request]);$.when(promises[0]).then((function(data){if(data.result.policy)return modalTitle.resolve(data.result.policy.name),modalBody.resolve(data.result.policy.content),data;throw new Error(data.warnings[0].message)})).catch((function(message){return modal.then((function(modal){return modal.hide(),modal})).catch(Notification.exception),Notification.addNotification({message:message,type:"error"})}))}))},{init:function(root){return root=$(root),new PolicyActions(root)}}}));
//# sourceMappingURL=policyactions.min.js.map| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| acceptances_filter.min.js | File | 1.84 KB | 0777 |
|
| acceptances_filter.min.js.map | File | 7.07 KB | 0777 |
|
| acceptances_filter_datasource.min.js | File | 1.14 KB | 0777 |
|
| acceptances_filter_datasource.min.js.map | File | 4.5 KB | 0777 |
|
| acceptmodal.min.js | File | 3.82 KB | 0777 |
|
| acceptmodal.min.js.map | File | 13.09 KB | 0777 |
|
| jquery-eu-cookie-law-popup.min.js | File | 4.82 KB | 0777 |
|
| jquery-eu-cookie-law-popup.min.js.map | File | 13.02 KB | 0777 |
|
| managedocsactions.min.js | File | 2.65 KB | 0777 |
|
| managedocsactions.min.js.map | File | 7.39 KB | 0777 |
|
| policyactions.min.js | File | 1.3 KB | 0777 |
|
| policyactions.min.js.map | File | 4.74 KB | 0777 |
|