Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
michield committed Nov 23, 2021
1 parent 8870dce commit 0519610
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 29 deletions.
25 changes: 2 additions & 23 deletions js/dist/phpList_ui_bootlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -2126,7 +2126,7 @@ $('body.fixed li.list').each(function(){
$('input[type=text],input[type=password],textarea,select,input[type=email],input[type=phone],input[type=file]').addClass('form-control');
$('#login-form td').addClass('input-group input-group-lg');
$('div.login').addClass('input-group input-group-sm');
$('div.login p').contents().unwrap().wrap('<span id=helpBlock class=help-block/>');
$('div.login p').contents().unwrap().wrap('<span id="helpBlock" class="help-block" />');
$('input[name=forgotpassword]').attr('aria-describedby','helpblock');
$('#login-form input[type=submit]').addClass('btn-lg');
$('#forgotpassword-form input[type=submit]').addClass('btn-sm');
Expand Down Expand Up @@ -2421,28 +2421,7 @@ $(document).ready(function(){
},1000);
}

/* function to prevent leave page */
$("body").click(function(e) {
$(window).on('beforeunload', function() {
if ( inside == 0 ){
inside=1;
if ( $('#sendmessageform').length > 0 ||
$('.configEdit .configValue').length > 0 && window.location.href.indexOf("id=list_categories") == -1){
return "Are you sure you want to leave? ";
}
}
});
if ( e.target.id == "content" || $(e.target).parents("#content").length ||
e.target.id == "modal-open" || $(e.target).parents(".modal-open").length ||
$(e.target).parents(".configValue").length ) {
var inside = 1;
} else {
inside = 0;
}
});

/* bootstrap tags input */
$('#dontsaveitem_list_categories').click(function(){
$('#dontsaveitem_list_categories').click(function(){
if(window.location.href.indexOf("id=list_categories") > -1)
location.reload();
});
Expand Down
Loading

0 comments on commit 0519610

Please sign in to comment.