summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Menu.php
AgeCommit message (Collapse)Author
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-01-21Update copyright to 2011.Bharat Mediratta
2010-12-29Improve the solution for #1545 by sorting the settings menu properlyBharat Mediratta
to be naturally ordered and case insensitive.
2010-12-17Sort the Admin > Settings menu instead of relying on module activation order.Bharat Mediratta
Requires making Menu::get() return a reference. Fixes #1545.
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-02-21Add Menu::add_before()Bharat Mediratta
2010-02-14Some HTML validation fixes (don't render empty <ul> lists, empty id ↵Andy Staudacher
attributes, use &amp; not &)
2009-11-06Modify the Menu_Element class to allow for the specification of a custom ↵Tim Almdal
view. Also allow the root element to specify a css id.
2009-10-27Guard against developers who forget to internationalize label stringsBharat Mediratta
2009-10-27Remove Menu::compact() in favor of putting an if-then clause inBharat Mediratta
menu.html.php. This serves two purposes: 1) It's more efficient since we're doing less passes over the Menu tree 2) We're allowing themers to decide whether or not to show empty menus
2009-10-27Change our menu building blocks to use PHP templates so that themesBharat Mediratta
can override them and define their own menu formats. I worry a little bit that this approach may be too heavy since we're now doing a lot more template includes than we were before. Also, I had to change the Menu API to stop using __toString() because you can't throw exceptions from __toString() which would make it an unhappy experience for developers.
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-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-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-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-11Fix whitespace typo.Bharat Mediratta
2009-07-11Put quotes around the href param (href="#")Tim Almdal
2009-07-10Add a title attribute to the li of a menuTim Almdal
2009-06-17Correct the "inappropriate intimacy" smell that bharat's refined senses pick upTim Almdal
2009-06-17Fix for ticket #366Tim Almdal
1) Stored the menu element type in the menu element 2) Scanned the menu before display removing any empty sub menus. Went with the removal approach because there will more users than developers
2009-06-02Have server_add turn the "Add Photo" menu option into a dropdown andBharat Mediratta
make "Add from Server" a 2nd option there. This requires adding the Menu::remove() API function.
2009-05-27Restructure things so that the application is now just another module.Bharat Mediratta
Kohana makes this type of transition fairly straightforward in that all controllers/helpers/etc are still located in the cascading filesystem without any extra effort, except that I've temporarily added a hack to force modules/gallery into the module path. Rename what's left of "core" to be "application" so that it conforms more closely to the Kohana standard (basically, just application/config/config.php which is the minimal thing that you need in the application directory) There's still considerable work left to be done here.