X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/mod/assign/feedback/editpdf/yui/src/editor/js
home
/
cbholdings
/
pasukulu
/
mod
/
assign
/
feedback
/
editpdf
/
yui
/
src
/
editor
/
js
/
📁
..
📄
annotation.js
(8.78 KB)
📄
annotationhighlight.js
(4.65 KB)
📄
annotationline.js
(3.36 KB)
📄
annotationoval.js
(3.35 KB)
📄
annotationpen.js
(4.39 KB)
📄
annotationrectangle.js
(3.41 KB)
📄
annotationstamp.js
(5.48 KB)
📄
colourpicker.js
(3.62 KB)
📄
comment.js
(20.5 KB)
📄
commentmenu.js
(4.24 KB)
📄
commentsearch.js
(4.81 KB)
📄
drawable.js
(3.19 KB)
📄
dropdown.js
(3.23 KB)
📄
edit.js
(2.34 KB)
📄
editor.js
(57.37 KB)
📄
globals.js
(3.32 KB)
📄
point.js
(1.83 KB)
📄
quickcomment.js
(1.57 KB)
📄
quickcommentlist.js
(6.81 KB)
📄
rect.js
(3.25 KB)
📄
stamppicker.js
(3.04 KB)
Editing: stamppicker.js
var STAMPPICKER_NAME = "Colourpicker", STAMPPICKER; /** * Provides an in browser PDF editor. * * @module moodle-assignfeedback_editpdf-editor */ /** * This is a drop down list of stamps. * * @namespace M.assignfeedback_editpdf * @class stamppicker * @constructor * @extends M.assignfeedback_editpdf.dropdown */ STAMPPICKER = function(config) { STAMPPICKER.superclass.constructor.apply(this, [config]); }; Y.extend(STAMPPICKER, M.assignfeedback_editpdf.dropdown, { /** * Initialise the menu. * * @method initializer * @return void */ initializer: function(config) { var stamplist = Y.Node.create('<ul role="menu" class="assignfeedback_editpdf_menu"/>'); // Build a list of stamped buttons. Y.each(this.get('stamps'), function(stamp) { var button, listitem, title; title = M.util.get_string('stamp', 'assignfeedback_editpdf'); button = Y.Node.create('<button><img height="16" width="16" alt="' + title + '" src="' + stamp + '"/></button>'); button.setAttribute('data-stamp', stamp); button.setAttribute('role', 'menuitem'); button.setStyle('backgroundImage', 'none'); listitem = Y.Node.create('<li/>'); listitem.append(button); listitem.setAttribute('role', 'none'); stamplist.append(listitem); }, this); // Set the call back. stamplist.delegate('click', this.callback_handler, 'button', this); stamplist.delegate('key', this.callback_handler, 'down:13', 'button', this); // Set the accessible header text. this.set('headerText', M.util.get_string('stamppicker', 'assignfeedback_editpdf')); // Set the body content. this.set('bodyContent', stamplist); STAMPPICKER.superclass.initializer.call(this, config); }, callback_handler: function(e) { e.preventDefault(); var callback = this.get('callback'), callbackcontext = this.get('context'), bind; this.hide(); // Call the callback with the specified context. bind = Y.bind(callback, callbackcontext, e); bind(); } }, { NAME: STAMPPICKER_NAME, ATTRS: { /** * The list of stamps this stamp picker supports. * * @attribute stamps * @type String[] - the stamp filenames. * @default {} */ stamps: { value: [] }, /** * The function called when a new stamp is chosen. * * @attribute callback * @type function * @default null */ callback: { value: null }, /** * The context passed to the callback when a stamp is chosen. * * @attribute context * @type Y.Node * @default null */ context: { value: null } } }); M.assignfeedback_editpdf = M.assignfeedback_editpdf || {}; M.assignfeedback_editpdf.stamppicker = STAMPPICKER;
Upload File
Create Folder