summaryrefslogtreecommitdiff
path: root/lib/gallery.common.js
AgeCommit message (Collapse)Author
2013-03-11#2053 - Change all .bind() to .on() for jQuery future-proofing.shadlaws
- on/off are preferred to bind/unbind, live/die, and delegate/undelegate in jQuery 1.7+ - they're likely on the road toward deprecation, so let's replace them now.
2013-03-02#2032 - Fix short form submit/cancel button formatting.shadlaws
- fixed the height of the submit buttons to match the input box - changed the cancel links into cancel buttons - added the hover effect to the buttons when used in in_place_edit (e.g. admin/tags)
2013-02-28#2018 follow-on and #2023 - Fixed issues with thumb hover effects.shadlaws
- cleaned up resize after hover: more efficient, totally browser-compatible (IE7-10, FF, Chrome tested!). - cleaned up resize on hover: more efficient, fixed bug with neighbors that are bigger but only by a little. - fixed bugs when moving off item with expanded context menu and then quickly back: oversized hover, flicker. - cleaned up formatting, removed unneeded code, and added comments.
2013-02-18Context menus are fixed! This should be fully compatible with older themesshadlaws
since only gallery.common.js is modified. Now that I understand the problem and the fix, I'm not sure I can explain why it *used* to work with older jQuery...
2013-02-17Fix up autocomplete for admin_server_add - found and fixed some bugsBharat Mediratta
in gallery_autocomplete when "multiple" isn't set. Fixed some harmless syntax issues that js2-mode helpfully pointed out.
2013-02-16Context menu dialog box problem: better, but still not working.shadlaws
- removed fake attr settings (possible compatibility issue with newer jQuery) - replaced with extra class - fixed formatting - still doesn't work: addClass works, but hasClass always returns false when function runs again
2013-02-03Super first pass:Bharat Mediratta
- jQuery 1.90 - jQuery UI 1.10 - Superfish 1.5.1 (minus all plugins) - jQuery Form 3.26.0-2013.01.28 Deleted all other jQuery plugins for now. - Reworked autocomplete to use the latest jQuery code. - Deleted references to $.browser.msie, no longer supported - Basic CSS support for autocomplete - lots more work needed there
2012-05-19Create an ajax response framework that inserts <meta> tags to guardBharat Mediratta
against UTF-7, and create a $.gallery_autocomplete variant of jQuery's autocomplete that expects the first line to be a <meta> tag and discards it. More complete fix for #1871.
2011-11-05added if (nh < 1) { var nh = 0; } Ian
to start album upper border not as nh = -n
2011-01-11Use Math.round() instead of Number() to convert floating point numbersBharat Mediratta
to integer. Fixes overflow probelm that causes #1490. Thanks to nkinkade for the fix.
2010-09-11Fix two bugs with the context menu:Bharat Mediratta
1) Prevent it from "bouncing" which happens when we queue up a lot of open and close events. Stop any running animations before starting new ones. This fixes #1340. 2) Prevent a bug that's not really visible to the user where we wind up re-initializing a context menu over and over which results in us binding tons of hover events. I don't think this causes any serious damage, but it's probably not good.
2010-09-11Refactor $.fn.gallery_context_menu() to store some variables insteadBharat Mediratta
of using CSS selector lookups for every operation. I assume (but have not verified) that this is more efficient.
2010-09-09Vertically realign thumbnails after rotation so that they stayBharat Mediratta
centered. Partial fix for #1354.
2010-09-09Replace the hook function hack I introduced inBharat Mediratta
cbba45fffc7368280e9529f55e108d0080175b6a with a namespaced jQuery custom event. This is way more portable.
2010-09-04Fix full size dimensions after rotating an image on the photo view page.Bharat Mediratta
The photo view page caches the dimensions of the full size and then renders it in Javascript. But after rotation, those dimensions are no longer valid. Create a new function on the items controller that returns the appropriate dimensions, then add a hook on $.gallery_replace_image and implement the hook on the photo view page to have it make an async call to get the new dimensions. Fixes ticket #1317
2010-07-11Indentation fixes.ckieffer
2010-06-20Fix two issues with the "loading" overlay:Bharat Mediratta
1) gallery.common.js was using the wrong class name 2) we need to mark the CSS as !important because it conflicts with other background images. Note that this will replace the existing background which may not be desireable.
2009-12-31Show context menus for movie items. Fix for ticket #960.Bharat Mediratta
2009-11-17Swap sides for rounded corners for short forms when RTL language is in use.Chad Kieffer
2009-11-08White-space cleanup.Chad Kieffer
2009-10-23Use jQuery fadeIn() for message display effect, it fades bg icon and color ↵Chad Kieffer
at the same time.
2009-10-18Moved the short_form init function to gallery.common and made it jQuery ↵Chad Kieffer
plugin. Dropped gallery.form.js. Applied short forms to server_add and tag admin pages. Added tag.css to admin views. Added .g-wide {}.
2009-10-17Added comments, minor white-space fixes.Chad Kieffer
2009-10-04Renamed more CSS selectors from gName to g-name.Chad Kieffer
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-09-30Convert gDialog and gCancel over to g-dialog and g-cancel. Refactor CSS id's ↵Chad Kieffer
and classes in the login/reset password dialog.
2009-09-27Set .gItem height dynamically based on the tallest item in the grid. ↵Chad Kieffer
Addresses ticket #757
2009-09-26Clean up hover effect, move some CSS out of ui.init.js to screen.css. Fix ↵Chad Kieffer
context_menu, it wasn't closing. Fix context_menu in IE7 by putting a bg color on the menu
2009-09-22Apply thumbnail hover effect to context menu's list items, which holds the ↵Chad Kieffer
menu open in ie6 and ie7 now. Items which appear above the meta data list underneath flicker, though. I'll fix later.
2009-09-21Don't try to initialize contextual menu unless it has itemsChad Kieffer
2009-08-28Convert tabs to spaces.Chad Kieffer
2009-08-23Merge branch 'master' of git@github.com:gallery/gallery3Chad Kieffer
2009-08-23Cut down on jittering of the context menu on open on resize view.Chad Kieffer
2009-08-21Refactor the _auto_fit method in gallery.show_full_size to a common method ↵Tim Almdal
in gallery.common.js Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-08-20Modified the conversion of the margin-top and margin-bottom css values. TheTim Almdal
problem arises because $(selector).css("margin-top) does not return a string and therefore the replace function is undefined. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-08-11Move context menu to gallery.commonChad Kieffer
2009-08-11Merge branch 'master' of git@github.com:bharat/gallery3Chad Kieffer
2009-08-10Create the concept of an "ajax link" and use it for thumbnail rotationBharat Mediratta
and album covers in the context menu. Notes: - This requires context_menu() to have a CSS selector that refers to the <img> that we're operating on, otherwise we don't know how to find the thumbnail, etc. - Create Menu_Element_Ajax_Link which has an ajax_handler attribute that contains a snippet of JS that we're going to run when the ajax call returns. - Add $.gallery_replace_image in gallery.common.js - Add lib/gallery.ajax.js which can be used to ajaxify any link, and have ui.init.js in the themes call that on all .gAjaxLink elements.
2009-08-10Return .each() to work with more than an individual photo.Chad Kieffer
2009-08-10Add missing semicolons.Bharat Mediratta
2009-08-09Rename fit_image to fit_photo for consistency.Chad Kieffer
2009-08-09Move hover effect to a function.Chad Kieffer
2009-08-09Move the get photo filter out to it's own function for re-use. Docblock cleanup.Chad Kieffer
2009-08-09Explicitly use gValign class rather than first child.Chad Kieffer
2009-08-09Rename resizeImage gallery_fit_image to follow convention. Move the function ↵Chad Kieffer
to gallery.common.js.
2009-08-07Rename gallery.common.js functions to conform to our naming standardsBharat Mediratta
and have some basic namespacing: showMessage --> gallery_show_message vAlign --> gallery_valign showLoading --> gallery_show_loading Convert gallery.show_full_size.js to be a jQuery function and give it a namespace: show_full_size --> gallery_show_full_size
2009-08-07Remove boilerplate comment.Bharat Mediratta
2009-08-08Forgot this file on the gallery dialog commitTim Almdal
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-08-08Refactor the gallery dialog into a jQuery widgetTim Almdal
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-07-31Simplify getViewportSize function to use the jQuery height and width functionsTim Almdal