Skip to content
Snippets Groups Projects
Commit b07758b8 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

"showOverlay", "hideOverlay"

parent c6873294
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,20 @@ define(['jquery'], function ($) {
$(this).trigger('vl.page.visible', [idx]);
});
}
function showOverlay($x) {
var $e = $x.parents('.vl-page').children('.vl-overlay');
if ($e.length) $e.fadeIn(400, function() {
$(this).removeClass('hidden');
});
}
function hideOverlay($x) {
var $e = $x.parents('.vl-overlay');
if ($e.length) $e.fadeOut(400, function() {
$(this).addClass('hidden');
}
}
function init(clbk) {
......@@ -203,6 +217,8 @@ define(['jquery'], function ($) {
addPage: addPage,
setPage: setPage,
presetPage: presetPage,
showOverlay: showOverlay,
hideOverlay: hideOverlay,
version: version
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment