summaryrefslogtreecommitdiff
path: root/themes/default/js/ui.init.js
AgeCommit message (Collapse)Author
2009-08-03Combine the quick menu and the thumb menu into a single menu calledBharat Mediratta
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-07-20Fire vAlign after gQuick ajax load is complete.Chad Kieffer
2009-07-19Fire .vAlign() when gItem's changed, ex. rotated. Fix for #304.Chad Kieffer
2009-07-12Minor style tweaks.Chad Kieffer
2009-07-11Get the thumbnail menu working.Bharat Mediratta
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-12Second attempt at showing and hiding the thumb menu. Renamed gThumbMenu to ↵Chad Kieffer
gPhotoMenu for use on both album and photo pages, eventually.
2009-07-12First attempt at animating gThumbMenu. Doesn't work.Chad Kieffer
2009-07-11Styled thumb menu, still needs script to set up interraction.Chad Kieffer
2009-07-11Position gItem and gPhoto relative, then position quick and thumb menus as ↵Chad Kieffer
absolute within them. Moved css from quick.js to quick.css.
2009-06-05Localize the 'Add a comment' messageBharat Mediratta
2009-05-26Split out re-used JavaScript for common functions (messages, valign), panel ↵Chad Kieffer
toggle, and forms to external files.
2009-05-19Added the nice new icons for the view buttons. No need to have them in a ↵Chad Kieffer
jQuery UI button, they stand well on their own. Thx to Ben Dunkle!
2009-05-09Apply status message display effect to admin theme. Use double rather than ↵Chad Kieffer
single quotes in JS.
2009-05-09Highlight status messages on load, fade them out after a few seconds. Make ↵Chad Kieffer
success green brighter.
2009-02-23added additional comment link, if no comments have been made yet.Jakob Hilden
2009-02-15Hide the menu until we can superfish it so that we don't see theBharat Mediratta
unstyled list appear which causes the page layout to flicker.
2009-02-13Ticket #2. Tighten up search results UI.Chad Kieffer
2009-02-13Fixed short form button style.Chad Kieffer
2009-02-12Added a show comment form button. Add comment form is revealed when the ↵Chad Kieffer
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-12Fixed gViewMenu button issues. Fixed major admin_default theme issues, ↵Chad Kieffer
content now clears the menu. Added IE-specific stylesheet to admin theme.
2009-02-09Add hover state for buttons.Chad Kieffer
2009-02-09And the JS file that belongs with the previous commit.Chad Kieffer
2009-02-08Fix spelling typoBharat Mediratta
2009-02-06jQuery-based buttons! Form updates, short form updates. Need to fix add ↵Chad Kieffer
user/group buttons and search form on search results page.
2009-02-04added inplace edit to tag admin (form still needs to be set to rename using ↵Jakob Hilden
AJAX) removed unnecessary {element: dialogLinks[i]} from dialog and panelLink handling. now uses event.currentTarget
2009-01-16Comment and code format fixesChad Kieffer
2009-01-13Fixed vertical alignment of thumbs.Chad Kieffer
2009-01-12Updated vertical alignment of thumbnails.Chad Kieffer
2009-01-10Add missing semicolonBharat Mediratta
2009-01-04Started to wire up album and photo view menus. Need photo's parent album ↵Chad Kieffer
link added. Also need add the slideshow link to the menu.
2009-01-03Added a jump to comments button with a scroll to effect.Chad Kieffer
2009-01-01For album-specific JS, key off of #gAlbumGrid rather than .gItem.Chad Kieffer
2009-01-01Refactor common dialog JS code out into lib/gallery.dialog.jsBharat Mediratta
2008-12-31PhotoID -> PhotoId for consistencyBharat Mediratta
2008-12-31Minor refactor. Move some stuff out of $("document").ready to functions. ↵Chad Kieffer
Comment updates.
2008-12-30Drop .gShortForm in favor of using specific form ids (gSearchForm, ↵Chad Kieffer
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-28Tighten up album grid display. Vertically align thumbnail/metadata in gItem ↵Chad Kieffer
container. Brought back borders. Use a neutral bg color for albums. Link item titles, not just thumbnails.
2008-12-26Comment and indent cleanup. Forgot to delete an image in a previous commit.Chad Kieffer
2008-12-26To reset a form use resetFormFelix Rabinovich
2008-12-25Big round of normalization of the way that our controllersBharat Mediratta
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-24Lots of deltas rolled up into a bigger change. Sorry for the mess.Bharat Mediratta
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-23Clean up the way that we upload via dialogs:Bharat Mediratta
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-23Make the loading class a bit more reusable.Chad Kieffer
2008-12-23Added missing semicolonsChad Kieffer
2008-12-18Dialog polishing. They now resize their height. Updated form styles in the ↵Chad Kieffer
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-17Added .gLoadingLarge and .gLoadingSmall to show ajax loading indicator. ↵Chad Kieffer
Applied to modal dialogs.
2008-12-17Added JS to set/reset simple forms' input values to their corresponding ↵Chad Kieffer
labels' value. Labels should always be used with visible inputs. Use this to style and control short form input display and behavior.
2008-12-16(no commit message)Tim Almdal
2008-12-16Submit the form using ajaxSubmitTim Almdal
2008-12-16Add Submit and Reset buttons to the dialog in order to trap the form ↵Tim Almdal
submission so the form doesn't close. There might be a better way, but i couldn't think of it.