File Manager
Upload
Current Directory: /home/lartcid/public_html/journal.lartc.id
[Back]
..
[Open]
Hapus
Rename
.htaccess
[Edit]
Hapus
Rename
.well-known
[Open]
Hapus
Rename
README.md
[Edit]
Hapus
Rename
api
[Open]
Hapus
Rename
cache
[Open]
Hapus
Rename
cgi-bin
[Open]
Hapus
Rename
classes
[Open]
Hapus
Rename
config.TEMPLATE.inc.php
[Edit]
Hapus
Rename
config.inc.php
[Edit]
Hapus
Rename
controllers
[Open]
Hapus
Rename
cypress.json
[Edit]
Hapus
Rename
dbscripts
[Open]
Hapus
Rename
docs
[Open]
Hapus
Rename
error_log
[Edit]
Hapus
Rename
favicon.ico
[Edit]
Hapus
Rename
index.php
[Edit]
Hapus
Rename
js
[Open]
Hapus
Rename
lib
[Open]
Hapus
Rename
locale
[Open]
Hapus
Rename
mini.php
[Edit]
Hapus
Rename
pages
[Open]
Hapus
Rename
php.ini
[Edit]
Hapus
Rename
plugins
[Open]
Hapus
Rename
public
[Open]
Hapus
Rename
registry
[Open]
Hapus
Rename
scheduledTaskLogs
[Open]
Hapus
Rename
schemas
[Open]
Hapus
Rename
styles
[Open]
Hapus
Rename
templates
[Open]
Hapus
Rename
tools
[Open]
Hapus
Rename
Edit File
/** * @defgroup js_classes_linkAction */ /** * @file js/classes/linkAction/LinkActionRequest.js * * Copyright (c) 2014-2021 Simon Fraser University * Copyright (c) 2000-2021 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * @class LinkActionRequest * @ingroup js_classes_linkAction * * @brief Base class for all link action requests. */ (function($) { /** @type {Object} */ $.pkp.classes.linkAction = $.pkp.classes.linkAction || {}; /** * @constructor * * @extends $.pkp.classes.ObjectProxy * * @param {jQueryObject} $linkActionElement The element the link * action was attached to. * @param {Object} options Configuration of the link action * request. */ $.pkp.classes.linkAction.LinkActionRequest = function($linkActionElement, options) { // Save the reference to the link action element. this.$linkActionElement = $linkActionElement; // Save the link action request options. this.options = options; // If the link action element is an actual link // and we find a URL in the options then set the // link of the link action for better documentation // and easier debugging in the DOM and for other // JS to easily access the target if required. if ($linkActionElement.is('a') && options.url) { $linkActionElement.attr('href', options.url); } }; // // Protected properties // /** * The element the link action was attached to. * @protected * @type {jQueryObject} */ $.pkp.classes.linkAction.LinkActionRequest.prototype. $linkActionElement = null; /** * The link action request options. * @protected * @type {Object} */ $.pkp.classes.linkAction.LinkActionRequest.prototype.options = null; // // Public methods // /** * Callback that will be bound to the link action element. * @param {HTMLElement} element The element that triggered the link * action activation event. * @param {Event} event The event that activated the link action. * @return {boolean} Should return false to stop event propagation. */ $.pkp.classes.linkAction.LinkActionRequest.prototype.activate = function(element, event) { this.getLinkActionElement().trigger('actionStart'); return false; }; /** * Callback that will be bound to the 'action finished' event of the * link action. * * @return {boolean} Should return false to stop event propagation. */ $.pkp.classes.linkAction.LinkActionRequest.prototype.finish = function() { // Execute the finish callback if there is one. if (this.options.finishCallback) { this.options.finishCallback(); } this.getLinkActionElement().trigger('actionStop'); return false; }; /** * Get the link action request url. * @return {?string} The link action request url. */ $.pkp.classes.linkAction.LinkActionRequest.prototype.getUrl = function() { if (this.options.url) { return this.options.url; } else { return null; } }; // // Protected methods // /** * Retrieve the link action request options. * @return {Object} The link action request options. */ $.pkp.classes.linkAction.LinkActionRequest.prototype.getOptions = function() { return this.options; }; /** * Retrieve the element the link action was attached to. * @return {jQueryObject} The element the link action was attached to. */ $.pkp.classes.linkAction.LinkActionRequest.prototype. getLinkActionElement = function() { return this.$linkActionElement; }; /** * Determine whether or not the link action should be debounced. * @return {boolean} Whether or not to debounce the link action. */ $.pkp.classes.linkAction.LinkActionRequest.prototype. shouldDebounce = function() { return true; }; }(jQuery));
Simpan