Commit Graph
105 Commits
Author SHA1 Message Date
Chad Kieffer bb6bf17076 Move context menu to gallery.common, forgot to include in prior commit 2009-08-11 00:41:07 -06:00
Bharat Mediratta cbba45fffc Create the concept of an "ajax link" and use it for thumbnail rotation
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-10 23:07:50 -07:00
Chad Kieffer c85d9b41d9 First stab at context menu for resize. It's quirky and needs work. 2009-08-09 23:12:25 -06:00
Chad Kieffer 1231e095c8 Keep image placement from shifting on hover, set gHoverItem height properly. 2009-08-09 12:46:17 -06:00
Chad Kieffer 2f4c4a3f70 Rename resizeImage gallery_fit_image to follow convention. Move the function to gallery.common.js. 2009-08-09 11:31:31 -06:00
Chad Kieffer 9fa4e89725 Fixed typo. Dialog links still broken. Now, wiht more speling! 2009-08-08 20:39:19 -06:00
Chad Kieffer 00098b4d14 Handle icon markup and styles in content menu before applying album grid hover affect. Dialog link's in context menu are broken currently 2009-08-08 11:59:32 -06:00
Chad Kieffer ed6302a0ad Merge branch 'master' of git@github.com:bharat/gallery3 2009-08-08 01:14:51 -06:00
Chad Kieffer 6357f3332b Added basic context menu affects and styles. Simplified some of the action labels in the menu. 2009-08-08 01:14:22 -06:00
Bharat Mediratta 828f6add50 Remove stray js-breaking "#" symbol that I accidentally added in 63ddac5d 2009-08-07 13:17:56 -07:00
Bharat Mediratta 63ddac5d01 Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_branch
Conflicts:
	themes/default/js/ui.init.js
2009-08-07 12:37:25 -07:00
Bharat Mediratta e4eec71efa Rename gallery.common.js functions to conform to our naming standards
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-07 11:53:40 -07:00
Tim AlmdalandBharat Mediratta 445a8fb1b6 Change galleryPanel and galleryDialog widgets to gallery_panel and gallery_dialog respectively
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-08-08 02:08:42 +08:00
Tim AlmdalandBharat Mediratta a302a9c3fa Refactor the gallery dialog into a jQuery widget
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-08-08 02:08:28 +08:00
Bharat Mediratta c09e2ef7af Merge branch 'master' of git@github.com:bharat/gallery3 into bharat_branch 2009-08-06 12:44:39 -07:00
Tim Almdal b826182b7a Cleanup the javascript for enabling dialog or panel links.
1) We don't need to loop over the elements to bind the event handler.
2) Just include gallery.panel.js for all the admin pages.

Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-08-06 22:28:05 +08:00
Chad Kieffer 3a8837726a White space fixes. 2009-08-04 23:52:36 -06:00
Bharat Mediratta 52147cf6f8 Combine the quick menu and the thumb menu into a single menu called
the "context" menu.

This new context menu is generated using the typical event processing
system, like our other menus.  The specialized quick CSS and JS is now
gone, replaced by our generic menu handling code.  It's all rolled
together currently using the thumb_menu UI for easy packaging.  All
the CSS and JS is updated.

NOTE: the non-dialog links (rotate, album_cover) have a broken UI
because they return JSON which the quick.js code handled specially,
but we don't handle properly now.  I need to fix this.
2009-08-03 21:45:54 -07:00
Chad Kieffer 329b6ce28c Fire vAlign after gQuick ajax load is complete. 2009-07-20 23:06:08 -06:00
Chad Kieffer ae22abcdf6 Fire .vAlign() when gItem's changed, ex. rotated. Fix for #304. 2009-07-19 16:45:14 -06:00
Chad Kieffer 50cd41655a Minor style tweaks. 2009-07-12 22:41:57 -06:00
Bharat Mediratta 895fbfd95b Get the thumbnail menu working.
1) Stop changing the menu classes in JS, instead allow us to specify
it in the Menu class itself and then set it to be gThumbMenu in Theme_View

2) Move the gThumbMenu init code to the bottom of the $(document).ready() block;
something in there was interfering with it.
2009-07-11 17:59:55 -07:00
Chad Kieffer 413174e89e Second attempt at showing and hiding the thumb menu. Renamed gThumbMenu to gPhotoMenu for use on both album and photo pages, eventually. 2009-07-12 16:07:16 -06:00
Chad Kieffer 58d0a5013d First attempt at animating gThumbMenu. Doesn't work. 2009-07-12 11:43:41 -06:00
Chad Kieffer 8bfcf09b4c Styled thumb menu, still needs script to set up interraction. 2009-07-11 23:14:26 -06:00
Chad Kieffer e0e450d90f Position gItem and gPhoto relative, then position quick and thumb menus as absolute within them. Moved css from quick.js to quick.css. 2009-07-11 00:40:57 -06:00
Chad Kieffer 3d4cbfa274 Move jquery local scroll module from default theme to lib, only load it if viewing photo view. White space cleanup, removed debug print from template. 2009-06-14 22:39:12 -06:00
Bharat Mediratta b30645e36c Localize the 'Add a comment' message 2009-06-05 00:48:18 -07:00
Chad Kieffer 88e1f02c1a Split out re-used JavaScript for common functions (messages, valign), panel toggle, and forms to external files. 2009-05-26 03:59:35 +00:00
Chad Kieffer 8855be0c33 Added the nice new icons for the view buttons. No need to have them in a jQuery UI button, they stand well on their own. Thx to Ben Dunkle! 2009-05-19 04:17:03 +00:00
Chad Kieffer a05451ef34 Apply status message display effect to admin theme. Use double rather than single quotes in JS. 2009-05-09 17:17:17 +00:00
Chad Kieffer 853c00cde0 Highlight status messages on load, fade them out after a few seconds. Make success green brighter. 2009-05-09 07:10:36 +00:00
Jakob Hilden 7d96448ecb added additional comment link, if no comments have been made yet. 2009-02-23 00:46:25 +00:00
Bharat Mediratta bcea2a6228 Hide the menu until we can superfish it so that we don't see the
unstyled list appear which causes the page layout to flicker.
2009-02-15 22:52:01 +00:00
Chad Kieffer 5dad40b1ae Ticket #2. Tighten up search results UI. 2009-02-13 03:21:19 +00:00
Chad Kieffer 985a324ec7 Fixed short form button style. 2009-02-13 02:10:38 +00:00
Chad Kieffer 9bbe8053c7 Added a show comment form button. Add comment form is revealed when the button is clicked. Used jQuery UI Effect to .highlight() to bring attention to newly added comments. Also added a named anchor to our block library to allow direct linking/scrolling to those blocks on the page. 2009-02-12 07:07:11 +00:00
Chad Kieffer d487558369 Fixed gViewMenu button issues. Fixed major admin_default theme issues, content now clears the menu. Added IE-specific stylesheet to admin theme. 2009-02-12 04:25:43 +00:00
Chad Kieffer 08ae48aeaa Add hover state for buttons. 2009-02-09 02:10:19 +00:00
Chad Kieffer 622bada112 And the JS file that belongs with the previous commit. 2009-02-09 01:58:06 +00:00
Bharat Mediratta 053fa63fa1 Superfish is now in gallery3/trunk/lib/superfish 2009-02-08 23:51:59 +00:00
Bharat Mediratta 0f13f12638 Fix spelling typo 2009-02-08 19:55:48 +00:00
Chad Kieffer 67d551d5e3 jQuery-based buttons! Form updates, short form updates. Need to fix add user/group buttons and search form on search results page. 2009-02-06 06:34:47 +00:00
Jakob Hilden 5b17619ea8 added inplace edit to tag admin (form still needs to be set to rename using AJAX)
removed unnecessary {element: dialogLinks[i]} from dialog and panelLink handling.  now uses event.currentTarget
2009-02-04 07:14:22 +00:00
Chad Kieffer ce70ab3785 Comment and code format fixes 2009-01-16 07:22:30 +00:00
Chad Kieffer ac59df2395 Fixed vertical alignment of thumbs. 2009-01-13 04:27:35 +00:00
Chad Kieffer 9be9c5a3d1 Updated vertical alignment of thumbnails. 2009-01-12 23:54:52 +00:00
Bharat Mediratta ff5722bef0 Add missing semicolon 2009-01-10 07:24:04 +00:00
Chad Kieffer f7f2fa10cd Started to wire up album and photo view menus. Need photo's parent album link added. Also need add the slideshow link to the menu. 2009-01-04 03:43:12 +00:00
Bharat Mediratta 4f57c30590 Fix windows-style line endings 2009-01-04 01:33:17 +00:00