| Server IP : 10.10.92.66 / Your IP : 104.23.243.150 Web Server : Apache/2.4.52 (Ubuntu) System : Linux jurnalpolinema 5.15.0-177-generic #187-Ubuntu SMP Sat Apr 11 22:54:33 UTC 2026 x86_64 User : jurnal ( 1001) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/jurnal/public_html/plugins/importexport/quickSubmit/js/ |
Upload File : |
/**
* @defgroup plugins_importexport_quickSubmit_js
*/
/**
* @file js/QuickSubmitFormHandler.js
*
* Copyright (c) 2014-2023 Simon Fraser University
* Copyright (c) 2000-2023 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file LICENSE.
*
* @class QuickSubmitFormHandler.js
* @ingroup plugins_importexport_quickSubmit_js
*
* @brief Handle the quickSubmit form.
*/
(function($) {
/** @type {Object} */
$.pkp.plugins.importexport.quickSubmit =
$.pkp.plugins.importexport.quickSubmit ||
{ js: {} };
/**
* @constructor
*
* @extends $.pkp.controllers.form.FormHandler
*
* @param {jQueryObject} $form the wrapped HTML form element.
* @param {Object} options form options.
*/
$.pkp.plugins.importexport.quickSubmit.js.QuickSubmitFormHandler =
function($form, options) {
this.parent($form, options);
this.callbackWrapper(this.updateSchedulePublicationDiv_());
$('#locale, #sectionId').change(function() {
// Trick the form not to validate missing data before submitting
$('input,textarea,select').filter('[required]').each(function() {
$(this).removeAttr('required');
$(this).removeClass('required');
});
// This submit is for relocalisation of the form
$('#reloadForm').val('1');
// Submit the form
$('#quickSubmitForm').submit();
});
};
$.pkp.classes.Helper.inherits(
$.pkp.plugins.importexport.quickSubmit.js.QuickSubmitFormHandler,
$.pkp.controllers.form.FormHandler);
/**
* Callback to replace the element's content.
*
* @private
*/
$.pkp.plugins.importexport.quickSubmit.js.QuickSubmitFormHandler.prototype.
updateSchedulePublicationDiv_ = function() {
$('input[type=radio][name=articleStatus]').change(function() {
if ($(this).is(':checked') && this.value == '0') {
$('#schedulePublicationDiv').hide();
} else if ($(this).is(':checked') && this.value == '1') {
$('#schedulePublicationDiv').show();
} else {
$('#schedulePublicationDiv').hide();
}
});
$('input[type=radio][name=articleStatus]').trigger('change');
$('#issueId').change(function() {
var val, array;
val = /** @type {string} */ $('#issuesPublicationDates').val();
array = JSON.parse(val);
if (!array[$('#issueId').val()]) {
$('#schedulingInformationDatePublished').hide();
} else {
$('input[name="datePublished"]').
datepicker('setDate', array[$('#issueId').val()]);
$('#ui-datepicker-div').hide();
$('#schedulingInformationDatePublished').show();
}
});
$('#issueId').trigger('change');
};
/** @param {jQuery} $ jQuery closure. */
}(jQuery));