PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | js/blockUI.js +9 -1 4.5.3 → 4.7.0 View file →
@@ -9,11 +9,19 @@
9 9 * @param {boolean} is_popup_blocking_screen (optional) when is true then it is impossible to close the popup by clicking outside
10 10 */
11 11 wp_optimize.block_ui = function (message, options, timeout, is_popup_blocking_screen) {
12 12
13 + var font_size = 'medium';
14 + if (typeof message === 'string') {
15 + if (message.length < 30) {
16 + font_size = 'large';
17 + } else if (message.length > 100) {
18 + font_size = 'small';
19 + }
20 + }
21 +
13 22 var $ = jQuery,
14 23 logo_src = (typeof wpoptimize !== 'undefined' && wpoptimize.logo_src) || (typeof wposmush !== 'undefined' && wposmush.logo_src),
15 - font_size = message.length < 30 ? 'large' : ( message.length < 100 ? 'medium' : 'small'),
16 24 params = {
17 25 css: {
18 26 width: '300px',
19 27 border: 'none',