dd2f6ebc77
- All new redefined interface - Faster animations and transitions - Import from Dropbox - Import from Server - Download public albums - Several sorting options - Installation assistent - Infobox and description for albums - Faster loading and improved performance - Better file handling and upload - Album covers are chosen intelligent - Prettier URLs - Massive changes under the hood - IPTC support (Headline and Caption) - EXIF Orientation support How to update: 1. Replace all files, excluding `uploads/` 2. Open Lychee and enter your database details
35 lines
683 B
JavaScript
35 lines
683 B
JavaScript
/**
|
|
* @name Modal Module
|
|
* @description Build, show and hide a modal.
|
|
* @author Tobias Reich
|
|
* @copyright 2014 by Tobias Reich
|
|
*/
|
|
|
|
modal = {
|
|
|
|
fns: null,
|
|
|
|
show: function(title, text, buttons, marginTop, closeButton) {
|
|
|
|
if (!buttons) {
|
|
var buttons = [
|
|
["", function() {}],
|
|
["", function() {}]
|
|
];
|
|
}
|
|
|
|
modal.fns = [buttons[0][1], buttons[1][1]];
|
|
$("body").append(build.modal(title, text, buttons, marginTop, closeButton));
|
|
$(".message input:first-child").focus();
|
|
|
|
},
|
|
|
|
close: function() {
|
|
|
|
modal.fns = null;
|
|
$(".message_overlay").removeClass("fadeIn").css("opacity", 0);
|
|
setTimeout(function() { $(".message_overlay").remove() }, 300);
|
|
|
|
}
|
|
|
|
} |