Commit 066af3cc authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1247: Migrate forms to new style

Task-Url: https://pm.winseda.de/issues/1247
parent 0f3ee795
......@@ -150,7 +150,7 @@ ModalFormHandler.prototype.setUpForm = function() {
$(content).html($(this.form));
$(this.form).find(".form-header").addClass("modal-header");
$(this.form).find(".form-header").append('<button type="button" class="close" data-dismiss="modal" aria-label="Close">' +
$(this.form).find(".form-header").append('<button type="button" class="close form-btn-cancel" data-dismiss="modal" aria-label="Close">' +
'<span aria-hidden="true"><i class="fas fa-lg fa-times"></i></span>' +
'</button>');
......@@ -249,8 +249,8 @@ ModalFormHandler.prototype.addMessage = function(type, header, message) {
ModalFormHandler.prototype.close = function() {
this.formResetted = true;
$(this.container).modal('hide');
$(this.container).modal('dispose')
};
ModalFormHandler.prototype.submit = function(data) {
......
......@@ -4,39 +4,39 @@
*
* Make sure that this file gets loaded after the translator and all dataTable-related scripts
*/
__translator.addTranslations(["~eu.dariah.de.colreg.common.view.data_tables.aria.sort_ascending",
"~eu.dariah.de.colreg.common.view.data_tables.aria.sort_descending",
"~eu.dariah.de.colreg.common.view.data_tables.empty_table",
"~eu.dariah.de.colreg.common.view.data_tables.info",
"~eu.dariah.de.colreg.common.view.data_tables.info_empty",
"~eu.dariah.de.colreg.common.view.data_tables.info_filtered",
"~eu.dariah.de.colreg.common.view.data_tables.info_post_fix",
"~eu.dariah.de.colreg.common.view.data_tables.info_thousands",
"~eu.dariah.de.colreg.common.view.data_tables.length_menu",
"~eu.dariah.de.colreg.common.view.data_tables.loading_records",
"~eu.dariah.de.colreg.common.view.data_tables.paginate.first",
"~eu.dariah.de.colreg.common.view.data_tables.paginate.last",
"~eu.dariah.de.colreg.common.view.data_tables.paginate.next",
"~eu.dariah.de.colreg.common.view.data_tables.paginate.previous",
"~eu.dariah.de.colreg.common.view.data_tables.processing",
"~eu.dariah.de.colreg.common.view.data_tables.search",
"~eu.dariah.de.colreg.common.view.data_tables.zero_records"]);
__translator.addTranslations(["~eu.dariah.de.minfba.common.data_tables.aria.sort_ascending",
"~eu.dariah.de.minfba.common.data_tables.aria.sort_descending",
"~eu.dariah.de.minfba.common.data_tables.empty_table",
"~eu.dariah.de.minfba.common.data_tables.info",
"~eu.dariah.de.minfba.common.data_tables.info_empty",
"~eu.dariah.de.minfba.common.data_tables.info_filtered",
"~eu.dariah.de.minfba.common.data_tables.info_post_fix",
"~eu.dariah.de.minfba.common.data_tables.info_thousands",
"~eu.dariah.de.minfba.common.data_tables.length_menu",
"~eu.dariah.de.minfba.common.data_tables.loading_records",
"~eu.dariah.de.minfba.common.data_tables.paginate.first",
"~eu.dariah.de.minfba.common.data_tables.paginate.last",
"~eu.dariah.de.minfba.common.data_tables.paginate.next",
"~eu.dariah.de.minfba.common.data_tables.paginate.previous",
"~eu.dariah.de.minfba.common.data_tables.processing",
"~eu.dariah.de.minfba.common.data_tables.search",
"~eu.dariah.de.minfba.common.data_tables.zero_records"]);
__translator.getTranslations();
$.fn.dataTable.defaults.oLanguage.oAria.sSortAscending = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.aria.sort_ascending");
$.fn.dataTable.defaults.oLanguage.oAria.sSortDescending = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.aria.sort_descending");
$.fn.dataTable.defaults.oLanguage.oPaginate.sFirst = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.paginate.first");
$.fn.dataTable.defaults.oLanguage.oPaginate.sLast = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.paginate.last");
$.fn.dataTable.defaults.oLanguage.oPaginate.sNext = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.paginate.next");
$.fn.dataTable.defaults.oLanguage.oPaginate.sPrevious = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.paginate.previous");
$.fn.dataTable.defaults.oLanguage.sEmptyTable = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.empty_table");
$.fn.dataTable.defaults.oLanguage.sInfo = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.info");
$.fn.dataTable.defaults.oLanguage.sInfoEmpty = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.info_empty");
$.fn.dataTable.defaults.oLanguage.sInfoFiltered = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.info_filtered");
$.fn.dataTable.defaults.oLanguage.sInfoPostFix = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.info_post_fix");
$.fn.dataTable.defaults.oLanguage.sInfoThousands = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.info_thousands");
$.fn.dataTable.defaults.oLanguage.sLengthMenu = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.length_menu");
$.fn.dataTable.defaults.oLanguage.sLoadingRecords = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.loading_records");
$.fn.dataTable.defaults.oLanguage.sProcessing = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.processing");
$.fn.dataTable.defaults.oLanguage.sSearch = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.search");
$.fn.dataTable.defaults.oLanguage.sZeroRecords = __translator.translate("~eu.dariah.de.colreg.common.view.data_tables.zero_records");
\ No newline at end of file
$.fn.dataTable.defaults.oLanguage.oAria.sSortAscending = __translator.translate("~eu.dariah.de.minfba.common.data_tables.aria.sort_ascending");
$.fn.dataTable.defaults.oLanguage.oAria.sSortDescending = __translator.translate("~eu.dariah.de.minfba.common.data_tables.aria.sort_descending");
$.fn.dataTable.defaults.oLanguage.oPaginate.sFirst = __translator.translate("~eu.dariah.de.minfba.common.data_tables.paginate.first");
$.fn.dataTable.defaults.oLanguage.oPaginate.sLast = __translator.translate("~eu.dariah.de.minfba.common.data_tables.paginate.last");
$.fn.dataTable.defaults.oLanguage.oPaginate.sNext = __translator.translate("~eu.dariah.de.minfba.common.data_tables.paginate.next");
$.fn.dataTable.defaults.oLanguage.oPaginate.sPrevious = __translator.translate("~eu.dariah.de.minfba.common.data_tables.paginate.previous");
$.fn.dataTable.defaults.oLanguage.sEmptyTable = __translator.translate("~eu.dariah.de.minfba.common.data_tables.empty_table");
$.fn.dataTable.defaults.oLanguage.sInfo = __translator.translate("~eu.dariah.de.minfba.common.data_tables.info");
$.fn.dataTable.defaults.oLanguage.sInfoEmpty = __translator.translate("~eu.dariah.de.minfba.common.data_tables.info_empty");
$.fn.dataTable.defaults.oLanguage.sInfoFiltered = __translator.translate("~eu.dariah.de.minfba.common.data_tables.info_filtered");
$.fn.dataTable.defaults.oLanguage.sInfoPostFix = __translator.translate("~eu.dariah.de.minfba.common.data_tables.info_post_fix");
$.fn.dataTable.defaults.oLanguage.sInfoThousands = __translator.translate("~eu.dariah.de.minfba.common.data_tables.info_thousands");
$.fn.dataTable.defaults.oLanguage.sLengthMenu = __translator.translate("~eu.dariah.de.minfba.common.data_tables.length_menu");
$.fn.dataTable.defaults.oLanguage.sLoadingRecords = __translator.translate("~eu.dariah.de.minfba.common.data_tables.loading_records");
$.fn.dataTable.defaults.oLanguage.sProcessing = __translator.translate("~eu.dariah.de.minfba.common.data_tables.processing");
$.fn.dataTable.defaults.oLanguage.sSearch = __translator.translate("~eu.dariah.de.minfba.common.data_tables.search");
$.fn.dataTable.defaults.oLanguage.sZeroRecords = __translator.translate("~eu.dariah.de.minfba.common.data_tables.zero_records");
......@@ -131,7 +131,7 @@ SourceSelection.prototype.getSelectionDialog = function() {
data: JSON.stringify({"sourceIds" : _this.getSelectedSourceIds()}),
contentType: "application/json",
identifier: form_identifier,
additionalModalClasses: "wide-modal",
additionalModalClasses: "modal-lg",
translations: [{placeholder: "~*servererror.head", key: "~de.dariah.genericsearch.view.async.servererror.head"},
{placeholder: "~*servererror.body", key: "~de.dariah.genericsearch.view.async.servererror.body"},
{placeholder: "~*validationerrors.head", key: "~de.dariah.genericsearch.view.collection.notification.error_crawling_exception.head"},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment