summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/gallery.common.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js
index 4ac6de70..5721c779 100644
--- a/lib/gallery.common.js
+++ b/lib/gallery.common.js
@@ -1,4 +1,6 @@
(function ($) {
+
+ // Fade in action status message background color
$.fn.gallery_show_message = function(message) {
return this.each(function(i){
$(this).effect("highlight", {"color": "white"}, 3000);
@@ -17,7 +19,6 @@
return $(this).height(tallest_height);
};
-
// Vertically align a block element's content
$.fn.gallery_valign = function(container) {
return this.each(function(i){
@@ -123,6 +124,7 @@
$(thumb).attr({src: data.src, width: data.width, height: data.height});
};
+ // Initialize context menus
$.fn.gallery_context_menu = function() {
if ($(".g-context-menu li").length) {
var hover_target = ".g-context-menu";
@@ -144,6 +146,7 @@
}
};
+ // Size a container to fit within the browser window
$.gallery_auto_fit_window = function(imageWidth, imageHeight) {
var size = $.gallery_get_viewport_size();
var width = size.width() - 6,