New: add "please be patient" message
This commit is contained in:
parent
75166db2ed
commit
db9fe97738
@ -23,7 +23,7 @@
|
|||||||
// Examples
|
// Examples
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
// override these in your code to change the default behavior and style
|
// override these in your code to change the default behavior and style
|
||||||
$.blockUI.defaults = {
|
$.blockUI.events = {
|
||||||
|
|
||||||
// styles applied when using $.growlUI
|
// styles applied when using $.growlUI
|
||||||
dolEventValidCSS: {
|
dolEventValidCSS: {
|
||||||
@ -70,7 +70,7 @@ $(document).ready(function() {
|
|||||||
message: $m, fadeIn: 200, fadeOut: 700, centerY: false,
|
message: $m, fadeIn: 200, fadeOut: 700, centerY: false,
|
||||||
timeout: timeout, showOverlay: false,
|
timeout: timeout, showOverlay: false,
|
||||||
onUnblock: onClose,
|
onUnblock: onClose,
|
||||||
css: $.blockUI.defaults.dolEventValidCSS
|
css: $.blockUI.events.dolEventValidCSS
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -83,8 +83,28 @@ $(document).ready(function() {
|
|||||||
message: $m, fadeIn: 200, centerY: false,
|
message: $m, fadeIn: 200, centerY: false,
|
||||||
timeout: timeout, showOverlay: false,
|
timeout: timeout, showOverlay: false,
|
||||||
onUnblock: onClose,
|
onUnblock: onClose,
|
||||||
css: $.blockUI.defaults.dolEventErrorCSS
|
css: $.blockUI.events.dolEventErrorCSS
|
||||||
});
|
});
|
||||||
$('.dolEventError').click($.unblockUI);
|
$('.dolEventError').click($.unblockUI);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$.pleaseBePatient = function(message, picto) {
|
||||||
|
var img = '';
|
||||||
|
if (picto != undefined) {
|
||||||
|
var img = picto + ' '
|
||||||
|
}
|
||||||
|
$.blockUI({
|
||||||
|
message: img + message,
|
||||||
|
css: {
|
||||||
|
border: 'none',
|
||||||
|
padding: '15px',
|
||||||
|
backgroundColor: '#000',
|
||||||
|
'-webkit-border-radius': '10px',
|
||||||
|
'-moz-border-radius': '10px',
|
||||||
|
'border-radius': '10px'
|
||||||
|
opacity: .5,
|
||||||
|
color: '#fff'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Loading…
Reference in New Issue
Block a user