summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-10-17 16:02:18 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-10-17 16:02:18 -0600
commit387adbbc9d3c8be117a4c89ab284eeb7dba00959 (patch)
tree595c850dc85f83beea4809ca8896459ff4cd6bcb /lib
parent661369b50f08c6256ed6f90922d0a9eeb6d4dad2 (diff)
Added comments, minor white-space fixes.
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,