Commit Graph

507 Commits

Author SHA1 Message Date
Bharat Mediratta
deafc01c21 Remove accidentally submitted .DS_Store file. 2009-08-23 15:05:18 -07:00
Chad Kieffer
457708311a Cut down on jittering of the context menu on open on resize view. 2009-08-23 14:58:26 -06:00
Chad Kieffer
7d36f43d0b Update docblocks and todos 2009-08-19 18:51:14 -06:00
Chad Kieffer
bb6bf17076 Move context menu to gallery.common, forgot to include in prior commit 2009-08-11 00:41:07 -06:00
Chad Kieffer
99d7a0c0db Make each context menu button clickable from side-to-side 2009-08-11 00:33:15 -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
cea1d4f1f3 Forgot to commit the css for the resize photo view context menu. 2009-08-09 23:32:53 -06: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
ea17a51148 Merge branch 'master' of git@github.com:bharat/gallery3 2009-08-09 09:51:40 -06:00
Bharat Mediratta
7aac471b82 Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_branch
Conflicts:
	modules/gallery/js/quick.js
2009-08-08 20:56:06 -07:00
Chad Kieffer
9fa4e89725 Fixed typo. Dialog links still broken. Now, wiht more speling! 2009-08-08 20:39:19 -06:00
Bharat Mediratta
6641fec60d Use the same pager layout as we do in photo.html.php. 2009-08-08 14:37:55 -07:00
Chad Kieffer
3a8f1f4262 Cleanup context menu styles a bit 2009-08-08 13:20:00 -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 Almdal
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 Almdal
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
Tim Almdal
9f396178ce Revert "Allow a theme to override the page refresh mechanism. Create a new"
This reverts commit 1f014aae6c.
2009-08-05 09:24:27 -07:00
Chad Kieffer
3a8837726a White space fixes. 2009-08-04 23:52:36 -06:00
Bharat Mediratta
ad19e29c46 Add the context menu to the photo/movie pages also. 2009-08-03 21:50:01 -07: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
Tim Almdal
1f014aae6c Allow a theme to override the page refresh mechanism. Create a new
javascript lib (gallery.reload.js) which defines the functions
gallery_reload() and gallery_location(new_location).  They just
do a window.location.reload() and window.location = new_location.

This change breaks the assumption that all themes will handle page reloads
the same and allows the theme to customize the page refresh.
2009-07-27 12:39:12 -07:00
Chad Kieffer
a7af9bb456 Missed committing the gBanner addition to the view template. 2009-07-26 16:02:53 -06:00
Chad Kieffer
26117accb6 Update to how gSiteMenu is positioned. Required addition of a new container, gBanner. This will ensure proper positioning across most browsers and simplifies gBreadcrumbs styles. Removed inaffective IE opacity style. 2009-07-26 10:54:21 -06:00
Chad Kieffer
eca46d76a7 Merge branch 'master' of git@github.com:gallery/gallery3 2009-07-25 09:25:31 -06:00
Bharat Mediratta
dbeadc1407 Use the Kohana cascading filesystem to locate resources loaded by the
theme.  Because the theme comes first, this means that themes can
override any module resources, at the cost that we no longer have
namespacing for JS and CSS files.

The only file getting used outside of this model is
themes/default/screen.css which is used in the admin theme.  I fixed
that by copying screen.css into admin_default and renaming its
screen.css to admin_screen.css.  I also copied over all the images
that it was referencing.

Fixes tickets #48 and #539.

Theme API changes:
- theme_script(), theme_url() and theme_css() are no longer needed
- script(), url() and css() now refer to the first matching asset in
  the module load path, where gallery3/lib is at the end of the path
2009-07-22 14:27:57 -07:00
Chad Kieffer
63511316be Merge branch 'master' of git@github.com:gallery/gallery3 2009-07-21 19:40:48 -06:00
Bharat Mediratta
0546f0df13 Fix the bug that the quick menu fires for the wrong photo. This stems
from using a single gQuickPane <div> that we move around.  A race
condition happens when you mouse over two thumbnails quickly.
Whichever server response loses the race gets displayed, and sometimes
it's the one that you're no longer hovering over.

Fix it by changing gQuickPane to be a class and creating a <div> per
thumbnail.

Fixes ticket #290.
2009-07-21 13:39:40 -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
Bharat Mediratta
e2a9a1d284 Add quotes around all values that contain spaces in them, and add a
test to make sure that we continue to do so.

This makes sure that we don't have problems with 5.3 which treats the
literal "on" as a boolean.
2009-07-13 10:36:55 -07: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
Bharat Mediratta
cbd80b5ff9 Get rid of the form from server_add, we're not using it.
Turn the cancel link into a themed close button which triggers a page
reload.

Add some padding to the left of the tree.
2009-07-11 07:37:49 -07:00
Chad Kieffer
872b5eed46 Merge branch 'master' of git@github.com:gallery/gallery3 2009-07-11 23:17:30 -06:00
Chad Kieffer
8bfcf09b4c Styled thumb menu, still needs script to set up interraction. 2009-07-11 23:14:26 -06:00
Bharat Mediratta
0098ef05c3 Merge branch 'master' of git@github.com:/gallery/gallery3 2009-07-11 05:07:41 -07:00
Bharat Mediratta
954ab5a505 Further simplify server_add (and bump it to version 3).
Now we don't have checkboxes, but instead we restrict you to selecting
directories and albums from only one level in the hierarchy.  This
makes it easier for us to make sure that we properly create the
hierarchy that you want and avoid confusion about what's going to wind
up where.

Modify Server_Add_File_Model to have a parent_id and item_id and then
modify them as we go so that we can build up a tree structure there
*before* we create any items.  This makes it much easier to figure out
where a new item is going to go and get rid of a bunch of probably
buggy code in the main task.
2009-07-11 05:03:36 -07: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
Tim Almdal
85de208879 Lets try the BBCode conversion again... go with basic tags even if some are
deprecated.
2009-07-04 20:30:13 -07:00