/* eslint-disable no-unused-vars */ /* global SELECTOR */ var COMMENTSEARCHNAME = "commentsearch", COMMENTSEARCH; /** * Provides an in browser PDF editor. * * @module moodle-assignfeedback_editpdf-editor */ /** * This is a searchable dialogue of comments. * * @namespace M.assignfeedback_editpdf * @class commentsearch * @constructor * @extends M.core.dialogue */ COMMENTSEARCH = function(config) { config.draggable = false; config.centered = true; config.width = '400px'; config.visible = false; config.headerContent = M.util.get_string('searchcomments', 'assignfeedback_editpdf'); config.footerContent = ''; COMMENTSEARCH.superclass.constructor.apply(this, [config]); }; Y.extend(COMMENTSEARCH, M.core.dialogue, { /** * Initialise the menu. * * @method initializer * @return void */ initializer: function(config) { var editor, container, placeholder, commentfilter, commentlist, bb; bb = this.get('boundingBox'); bb.addClass('assignfeedback_editpdf_commentsearch'); editor = this.get('editor'); container = Y.Node.create('
'); placeholder = M.util.get_string('filter', 'assignfeedback_editpdf'); commentfilter = Y.Node.create(''); container.append(commentfilter); commentlist = Y.Node.create('