updated plugin Subscribe2 version 10.36

This commit is contained in:
2021-09-30 14:54:06 +00:00
committed by Gitium
parent 375bf37aad
commit 3025a64583
13 changed files with 298 additions and 249 deletions

View File

@ -29,7 +29,8 @@ s2jQuery( document ).ready(
zIndex: 10000,
minWidth: 350,
minHeight: 300,
title: s2AjaxScriptStrings.title
title: s2AjaxScriptStrings.title,
closeText: ""
}
);
dialog.dialog( 'open' );

View File

@ -27,9 +27,7 @@ jQuery( document ).ready(
var checkedStatus = true;
jQuery( 'input[class="' + this.className + '"]' ).each(
function() {
if ( ( true === this.checked ) && ( true === checkedStatus ) ) {
checkedStatus = true;
} else {
if ( ( ! this.checked ) ) {
checkedStatus = false;
}
jQuery( 'input[value="' + this.className + '"]' )
@ -40,16 +38,14 @@ jQuery( document ).ready(
);
// function to check or uncheck 'checkall' box when page is loaded
jQuery( 'input[class^="checkall"]' ).each(
function() {
jQuery( 'input[name^="checkall"]' ).each(function(value, item) {
var checkedStatus = true;
if ( ( true === this.checked ) && ( true === checkedStatus ) ) {
checkedStatus = true;
} else {
checkedStatus = false;
}
jQuery( 'input[value="' + this.className + '"]' )
.prop( 'checked', checkedStatus );
jQuery('input[class='+item.value).each(function () {
if ( ( ! this.checked ) ) {
checkedStatus = false;
}
});
jQuery(this).prop( 'checked', checkedStatus );
}
);
}