Skip to content

Commit

Permalink
Cleanup whitespaces and line endings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sallner committed Oct 1, 2018
1 parent af9d6ec commit 41ac177
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/zmi/styles/resources/zmi_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function addItem( elm, base_url ) {
var modal_form_base = url_full.split(action)[0];
var modal_body_url = url_full + '?zmi_dialog=modal';

// List of Object Types Inserting Without Modal Dialog
// List of Object Types Inserting Without Modal Dialog
var no_modal_dialog = [
'manage_addRegistry',
'manage_addUserFolder',
Expand All @@ -29,7 +29,7 @@ function addItem( elm, base_url ) {
'addPluggableAuthService'
];

// SHOW MODAL DIALOG
// SHOW MODAL DIALOG
if ( $.inArray(action, no_modal_dialog) < 0 ) {
// Deactivate for Testing Purposes:
// if ( 1==0 ) {
Expand All @@ -38,8 +38,8 @@ function addItem( elm, base_url ) {
$('#zmi-modal .modal-body').attr('data-add_type', action);
// Load Modal Form by AJAX
$('#zmi-modal .modal-body').load(modal_body_url, function(responseTxt, statusTxt, xhr) {
if(statusTxt == "error") {
window.location.href = url_full;
if(statusTxt == "error") {
window.location.href = url_full;
}
});
// Shift Titel to Modal Header
Expand Down Expand Up @@ -120,7 +120,7 @@ function addItem( elm, base_url ) {
"Cookie Crumbler":{ "title":"Cookie Crumbler", "class":"fa fa-cookie-bite" },
"Broken object":{ "title":"Broken object", "class":"fas fa-ban text-danger" }
};

// PROCESS Object Icons
for ( var i in zmi_icons ) {
var i_name = i;
Expand Down Expand Up @@ -258,11 +258,11 @@ $(function() {
}

// EXECUTE DESIGN WORKAROUNDS
// Needed until ALL GUI Forms are Bootstrap Conformant
// Needed until ALL GUI Forms are Bootstrap Conformant
fix_zmi_icons();
fix_ancient_gui();

// EXECUTE FUNCTIONAL WORKAROUNDS
// EXECUTE FUNCTIONAL WORKAROUNDS
// [1] Showing some Menu Elements only on List Page as Active
if ($('.nav a[href="manage_findForm"]').length > 0 ) {
$('#addItemSelect, #toggle_menu').css('opacity',1);
Expand All @@ -275,7 +275,7 @@ $(function() {
$('#addItemSelect').attr( 'title', $('#addItemSelect').attr('data-title-inactive') );
$('#toggle_menu').attr( 'title', $('#toggle_menu').attr('data-title-inactive') );
}

if (!window.matchMedia || (window.matchMedia("(max-width: 767px)").matches)) {
$('.zmi header.navbar li.zmi-authenticated_user').tooltip({'placement':'bottom'});
}
Expand Down

0 comments on commit 41ac177

Please sign in to comment.