Proyectos de Subversion Moodle

Rev

Autoría | Ultima modificación | Ver Log |

{"version":3,"file":"selectors.min.js","sources":["../src/selectors.js"],"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 * Common CSS selectors for the forum UI.\n *\n * @module     mod_forum/selectors\n * @copyright  2019 Andrew Nicols <andrew@nicols.co.uk>\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\ndefine([], function() {\n    return {\n        subscription: {\n            toggle: \"[data-type='subscription-toggle'][data-action='toggle']\",\n        },\n        summary: {\n            actions: \"[data-container='discussion-summary-actions']\"\n        },\n        post: {\n            post: '[data-region=\"post\"]',\n            action: '[data-region=\"post-action\"]',\n            actionsContainer: '[data-region=\"post-actions-container\"]',\n            authorName: '[data-region=\"author-name\"]',\n            forumCoreContent: \"[data-region-content='forum-post-core']\",\n            forumContent: \"[data-content='forum-post']\",\n            forumSubject: \"[data-region-content='forum-post-core-subject']\",\n            inpageCancelButton: \"button[name='cancelbtn']\",\n            inpageReplyButton: \"button\",\n            inpageReplyLink: \"[data-action='collapsible-link']\",\n            inpageReplyCancelButton: \"[data-action='cancel-inpage-reply']\",\n            inpageReplyCreateButton: \"[data-action='create-inpage-reply']\",\n            inpageReplyContainer: '[data-region=\"inpage-reply-container\"]',\n            inpageReplyContent: \"[data-content='inpage-reply-content']\",\n            inpageReplyForm: \"form[data-content='inpage-reply-form']\",\n            inpageSubmitBtn: \"[data-action='forum-inpage-submit']\",\n            inpageSubmitBtnText: \"[data-region='submit-text']\",\n            loadingIconContainer: \"[data-region='loading-icon-container']\",\n            repliesContainer: \"[data-region='replies-container']\",\n            replyCount: '[data-region=\"reply-count\"]',\n            modeSelect: \"select[name='mode']\",\n            showReplies: '[data-action=\"show-replies\"]',\n            hideReplies: '[data-action=\"hide-replies\"]',\n            repliesVisibilityToggleContainer: '[data-region=\"replies-visibility-toggle-container\"]'\n        },\n        lock: {\n            toggle: \"[data-action='toggle'][data-type='lock-toggle']\",\n            icon: \"[data-region='locked-icon']\"\n        },\n        favourite: {\n            toggle: \"[data-type='favorite-toggle'][data-action='toggle']\",\n        },\n        pin: {\n            toggle: \"[data-type='pin-toggle'][data-action='toggle']\",\n        },\n        discussion: {\n            tools: '[data-container=\"discussion-tools\"]',\n            item: '[data-region=\"discussion-list-item\"]',\n            lockedLabel: \"[data-region='locked-label']\",\n            subscribedLabel: \"[data-region='subscribed-label']\",\n            timedLabel: \"[data-region='timed-label']\",\n        },\n    };\n});\n"],"names":["define","subscription","toggle","summary","actions","post","action","actionsContainer","authorName","forumCoreContent","forumContent","forumSubject","inpageCancelButton","inpageReplyButton","inpageReplyLink","inpageReplyCancelButton","inpageReplyCreateButton","inpageReplyContainer","inpageReplyContent","inpageReplyForm","inpageSubmitBtn","inpageSubmitBtnText","loadingIconContainer","repliesContainer","replyCount","modeSelect","showReplies","hideReplies","repliesVisibilityToggleContainer","lock","icon","favourite","pin","discussion","tools","item","lockedLabel","subscribedLabel","timedLabel"],"mappings":";;;;;;;AAsBAA,6BAAO,IAAI,iBACA,CACHC,aAAc,CACVC,OAAQ,2DAEZC,QAAS,CACLC,QAAS,iDAEbC,KAAM,CACFA,KAAM,uBACNC,OAAQ,8BACRC,iBAAkB,yCAClBC,WAAY,8BACZC,iBAAkB,0CAClBC,aAAc,8BACdC,aAAc,kDACdC,mBAAoB,2BACpBC,kBAAmB,SACnBC,gBAAiB,mCACjBC,wBAAyB,sCACzBC,wBAAyB,sCACzBC,qBAAsB,yCACtBC,mBAAoB,wCACpBC,gBAAiB,yCACjBC,gBAAiB,sCACjBC,oBAAqB,8BACrBC,qBAAsB,yCACtBC,iBAAkB,oCAClBC,WAAY,8BACZC,WAAY,sBACZC,YAAa,+BACbC,YAAa,+BACbC,iCAAkC,uDAEtCC,KAAM,CACF3B,OAAQ,kDACR4B,KAAM,+BAEVC,UAAW,CACP7B,OAAQ,uDAEZ8B,IAAK,CACD9B,OAAQ,kDAEZ+B,WAAY,CACRC,MAAO,sCACPC,KAAM,uCACNC,YAAa,+BACbC,gBAAiB,mCACjBC,WAAY"}