Commit Graph
235 Commits
Author SHA1 Message Date
Chad Kieffer e8d10cab9d Applied #gPager to next/last nav, moved up above photo and moved photo title back to below the photo. 2009-01-01 22:56:57 +00:00
Chad Kieffer 7452a18938 Update the CSS item ID and class application for items and albums in albums. Miscellaneous CSS updates. 2009-01-01 22:54:35 +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 cd1d023754 Change the preamble for views in two ways:
1) drop unnecessary semicolon
2) start with <?php for extra security in the case that the server itself doesn't
   have short_tags enabled (the app won't work, but we need to make sure that we're
   still secure)
2009-01-01 00:23:29 +00:00
Bharat Mediratta 7c82691e00 Move debug CSS into core/css/debug.css, and enable it for admin themes also 2009-01-01 00:16:08 +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 fc56ebd434 Simplify the next/previous logic in the theme by passing in a null
next/prev sib if one didn't exist.  (that's what we were supposed to
be doing in the first place, anyway)
2008-12-31 07:22:35 +00:00
Bharat Mediratta 23105f1359 PhotoID -> PhotoId for consistency 2008-12-31 07:16:38 +00:00
Bharat Mediratta c1140b5c0a Add Item_Model::url() and use it where appropriate. Cleans up some
grotty looking stuff in themes.
2008-12-31 07:13:34 +00:00
Bharat Mediratta 44c987e89e Add sibling information on photo pages and a very simple next/previous interface. 2008-12-31 07:06:10 +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
Bharat Mediratta 8aebdf4e19 Add site_status to the default theme. Only admins will see messages for now, but it's nice for them to see messages when browsing instead of just in the site admin 2008-12-30 04:12:43 +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 37f9cc2872 Missed these in r19485. 2008-12-30 00:52:03 +00:00
Chad Kieffer 96fce2dd3b Refactored. Simplified organization a bit by combining sections. Restored block titles to h2. Moved #gMessage to #gContent. Removed .gClearFix class in favor of specifying selectors that require a clear fix. 2008-12-30 00:50:23 +00:00
Chad Kieffer 62cd05fb16 Apply button bg image to Superfish menu items. 2008-12-29 06:12:00 +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 dc62e4167e Rename pagination icons to follow convention. 2008-12-27 17:16:21 +00:00
Chad Kieffer ef27cd4c33 Icon refinement 2008-12-27 17:01:42 +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
Chad Kieffer 2d40715f44 The close icon's a background sprite, should be prefixed with bg- not ico-. 2008-12-26 05:15:57 +00:00
Chad Kieffer b20b56d762 Major image cleanup, removed unsued images. Combined separate background and icon state images into sprites. Fix dialog artifact in Chrome. 2008-12-26 04:27:39 +00:00
Chad Kieffer 847d42682d Switch gFailure back to gError. Makes more sense semantically. 2008-12-25 23:31:41 +00:00
Chad Kieffer caaa521927 Update message CSS: gFailure, gInfo, gSuccess, gWarning. Removed gHelp, it's not a message type. 2008-12-25 23:22:38 +00:00
Chad Kieffer 9ebced112b Restore inline gLoginMenu items, remove extra ; from footer. 2008-12-25 20:12:00 +00:00
Chad Kieffer 2c978cb37a Message box style update. A few font-style updates. 2008-12-25 19:59:15 +00:00
Bharat Mediratta 74bfa24b8f Move jquery.listen.js out to lib 2008-12-25 08:27:57 +00:00
Bharat Mediratta 5ca952fe61 jquery-ui.packed.js --> jquery-ui.js 2008-12-25 08:11:46 +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
Bharat Mediratta bdc0876fa8 Add messaging system for reporting actions back to the user. Make
module install/uninstall work and tie it into the messaging system.
2008-12-22 06:50:20 +00:00
Bharat Mediratta b526cc8c0b Add some admin theme callbacks and make them explicitly admin_xxx for consistency
with the callbacks in the xxx_block helpers.  So in the theme we have:

admin.html.php:
  $theme->admin_page_bottom()

then in the helpers:

core_block.php:
  function admin_page_bottom() { }
2008-12-22 03:53:36 +00:00
Chad Kieffer 12e9c136f2 Add a bit more space under gHeader. 2008-12-19 06:10:45 +00:00
Bharat Mediratta c67234974d Refactor site admin menu into a theme function and build the menus in
the various modules.  In the process, rename xxx_menu::site_navigation() to just
xxx_menu::site().  And add xxx_menu::admin().

The menus are the same as before, but I changed the HTML to be
consistent with the way that we do it in the regular site, and this
broke the superfish styles.  I don't know how to fix this.. help me
Chad!
2008-12-18 07:32:34 +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
Bharat Mediratta fc7b78492b Separate thumbnails out into var/thumbs. This clears up some ambiguity in Item_Model and simplifies
file_proxy.  It also means we can stop munging file names in the var/resizes hierarchy.

In the process, rename "thumbnail" to "thumb" everywhere in honor of
Chad (well, ok because it's shorter)..
2008-12-17 04:45:35 +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
Tim Almdal 363548bfc4 2008-12-16 20:40:29 +00:00
Tim Almdal 931d8c6bdc Submit the form using ajaxSubmit 2008-12-16 17:26:19 +00:00
Tim Almdal 4c3c68ac10 Add Submit and Reset buttons to the dialog in order to trap the form submission so the form doesn't close. There might be a better way, but i couldn't think of it. 2008-12-16 16:29:59 +00:00
Bharat Mediratta a0e07764c1 Make the breadcrumb a little larger 2008-12-16 11:04:47 +00:00
Bharat Mediratta e73bd90285 Convert tabs to spaces 2008-12-15 08:35:46 +00:00
Bharat Mediratta 011fe8bc93 Get rid of windows line endings 2008-12-15 08:35:30 +00:00
Chad Kieffer cf47b3d45c Fix that rascal IE. Added conditional HTML comment to use fix-ie.css for IE7 and earlier. Fixed bg images in album/item view buttons, IE 6/7 don't appear to handle background-position: center center :( 2008-12-15 07:08:13 +00:00
Tim Almdal 20d5f45218 Fix the reference to jquery-ui.packed.js 2008-12-15 06:37:56 +00:00