Commit Graph

87 Commits

Author SHA1 Message Date
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
Chad Kieffer
bdff96bd54 Added a jump to comments button with a scroll to effect. 2009-01-03 19:09:32 +00:00
Chad Kieffer
b709c7eca0 For album-specific JS, key off of #gAlbumGrid rather than .gItem. 2009-01-01 22:22:18 +00:00
Bharat Mediratta
11d2788af8 Refactor common dialog JS code out into lib/gallery.dialog.js 2009-01-01 00:06:52 +00:00
Bharat Mediratta
23105f1359 PhotoID -> PhotoId for consistency 2008-12-31 07:16:38 +00:00
Chad Kieffer
959fa91f49 Minor refactor. Move some stuff out of $("document").ready to functions. Comment updates. 2008-12-31 04:10:03 +00:00
Chad Kieffer
27009ad852 Drop .gShortForm in favor of using specific form ids (gSearchForm, gAddTagForm). This maintains styles when forms are are reloaded into the DOM. Haven't figured out how to fire shortFormInit() when a form is reloaded into the DOM, as gAddTagForm is :( 2008-12-30 02:50:52 +00:00
Chad Kieffer
aff2af5e1f Tighten up album grid display. Vertically align thumbnail/metadata in gItem container. Brought back borders. Use a neutral bg color for albums. Link item titles, not just thumbnails. 2008-12-28 07:33:09 +00:00
Chad Kieffer
4dda9c5a6e Comment and indent cleanup. Forgot to delete an image in a previous commit. 2008-12-26 06:09:43 +00:00
Felix Rabinovich
0bef37eb0b To reset a form use resetForm 2008-12-26 05:36:08 +00:00
Bharat Mediratta
74bfa24b8f Move jquery.listen.js out to lib 2008-12-25 08:27:57 +00:00
Bharat Mediratta
fdc0f83024 Big round of normalization of the way that our controllers
communicate.  Almost all controllers now use JSON to speak to the
theme when we're dealing with form processing.  This means tht we only
send the form back and forth, but we use a JSON protocol to tell the
browser success/error status as well as the location of any newly
created resources, or where the browser should redirect the user.

Lots of small changes:
1) Admin -> Edit Profile is gone.  Instead I fixed the "Modify Profile" link
   in the top right corner to be a modal dialog

2) We use json_encode everywhere.  No more Atom/XML for now.  We can bring those
   back later, though.  For now there's a lot of code duplication but that'll be
   easy to clean up.

3) REST_Controller is no longer abstract.   All methods its subclasses should create
   throw exceptions, which means that subclasses don't have to implement stubs for
   those methods.

4) New pattern: helper method get_add_form calls take an Item_Model,
   not an id since we have to load the Item_Model in the controller
   anyway to check permissions.

5) User/Groups REST resources are separate from User/Group in the site
   admin.  They do different things, we should avoid confusing overlap.
2008-12-25 05:12:46 +00:00
Bharat Mediratta
672eca5337 Lots of deltas rolled up into a bigger change. Sorry for the mess.
1) Deleted in-place-editing.  We'll be replacing this with a real edit
   system that groups settings together and is more coherent.

2) Tweaked the way that dialog boxes work to get the ajax stuff working
   again.  It's imperfect and does not work properly for uploading images.
   This is going to get redone also, but this is a good resting point.

3) Created edit forms for albums and photos.  Moved _update and _create out
   of Items_Controller and into the individual subclasses.

4) Created access::required which is a shorthand for:
    if (!access::can(...)) {
      access::forbidden();
    }

5) Added validation rules to Items_Model

6) Converted login to use the regular modal dialog approach in the theme.
2008-12-24 00:20:26 +00:00
Bharat Mediratta
76b1500209 Clean up the way that we upload via dialogs:
1) If the create request is Ajax, then return a 201 Created response code
2) If we receive back a 201 response, then switch to the new page.
3) Display a status message when we do an upload.
2008-12-23 07:30:14 +00:00
Chad Kieffer
73d7cb4576 Make the loading class a bit more reusable. 2008-12-23 06:24:21 +00:00
Chad Kieffer
0c89fdcfc8 Added missing semicolons 2008-12-23 01:00:23 +00:00
Chad Kieffer
c2598fe4d8 Dialog polishing. They now resize their height. Updated form styles in the context of dialog display (don't show legends, fieldset border, or submit button).
Let's make sure that all forms generated are complete and well formed and then use JS and CSS to control their display and behavior in different contexts.
2008-12-18 02:50:40 +00:00
Chad Kieffer
01f6c67eb5 Added .gLoadingLarge and .gLoadingSmall to show ajax loading indicator. Applied to modal dialogs. 2008-12-17 06:22:08 +00:00
Chad Kieffer
3c05b95620 Added JS to set/reset simple forms' input values to their corresponding labels' value. Labels should always be used with visible inputs. Use this to style and control short form input display and behavior. 2008-12-17 00:45:52 +00:00