Commit Graph
133 Commits
Author SHA1 Message Date
Chad Kieffer 9d4876b6aa Added comments, formatted CSS, added status message styles. 2009-08-30 23:20:49 -06:00
Chad Kieffer c9d2e22266 Merge branch 'master' of git@github.com:gallery/gallery3 2009-08-29 17:34:39 -06:00
Chad Kieffer 75ee962c9e Apply hover effect to dialog buttons. 2009-08-29 17:32:34 -06:00
jhilden ed9be09653 Merge branch 'master' of git@github.com:gallery/gallery3 2009-08-29 19:12:57 -04:00
jhilden 39559fdfd0 initial version of the the file with common CSS styles that should be reused if possible 2009-08-29 19:11:16 -04:00
Chad Kieffer 210ba966f8 Fixed issue where button classes and cancel link weren't being re-applied to forms when an open dialog is reloaded. 2009-08-28 18:20:56 -06:00
Chad Kieffer fc1c4d5119 Button styles and event handlers weren't being applied in dialogs, fixes #669. 2009-08-28 16:37:14 -06:00
Chad Kieffer 5a2853bca1 Merge branch 'master' of git@github.com:gallery/gallery3 2009-08-28 13:48:54 -06:00
Chad Kieffer 94b5749d46 Convert tabs to spaces. 2009-08-28 13:42:45 -06:00
Tim Almdal bfc64685e4 Allow clicking on the overlay to close the fullsize and remove some debug code 2009-08-27 15:37:18 -07:00
Tim Almdal 84b018b08d Fix ticket #644
1) remove close button
2) extend the grey overlay to the document size
3) allow any keypress to close the fullize image
4) click on the fullsize will close
2009-08-27 15:22:27 -07:00
Tim Almdal dc67de520d Merge branch 'master' of git://github.com/gallery/gallery3 2009-08-25 15:00:44 -07:00
Chad Kieffer 2264a80368 Merge branch 'master' of git@github.com:gallery/gallery3 2009-08-23 15:00:00 -06: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
Tim Almdal 256822a1e8 Refactor the _auto_fit method in gallery.show_full_size to a common method in gallery.common.js
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-08-21 03:56:38 +08:00
Tim Almdal 74d79dc819 Refactor the _auto_fit method in gallery.show_full_size to a common method in gallery.common.js 2009-08-20 12:53:20 -07:00
Tim Almdal b989383fe6 Modified the conversion of the margin-top and margin-bottom css values. The
problem arises because $(selector).css("margin-top) does not return a string
and therefore the replace function is undefined.

Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-08-20 07:11:13 +08:00
Tim Almdal bfcbb60039 Modified the conversion of the margin-top and margin-bottom css values. The
problem arises because $(selector).css("margin-top) does not return a string
and therefore the replace function is undefined.
2009-08-19 16:06:36 -07:00
Tim Almdal 407ce45bc5 Correct indentation
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-08-19 21:16:03 +08:00
Tim Almdal b184f995f8 Correct indentation 2009-08-19 06:12:29 -07:00
Tim Almdal bc42df35ee Merge branch 'master' of git://github.com/gallery/gallery3 2009-08-19 05:14:05 -07:00
Chad Kieffer 3b8323d5b4 Merge branch 'master' of git@github.com:gallery/gallery3 2009-08-18 23:08:32 -06:00
Tim Almdal 693e95e7b0 Use the jquery-ui library that contains a prerelease version of the slectable component
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-08-13 05:20:38 +08:00
Tim Almdal 39b37cc585 Use the jquery-ui library that contains a prerelease version of the slectable component 2009-08-12 14:13:39 -07:00
Chad Kieffer 65e97fda48 Move context menu to gallery.common 2009-08-11 00:40:14 -06:00
Chad Kieffer a10c309c36 Replace tabs w/ spaces. 2009-08-11 00:28:38 -06:00
Chad Kieffer 3e3bbd5d2e Merge branch 'master' of git@github.com:bharat/gallery3 2009-08-11 00:15:04 -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 e3a58b76c1 Return .each() to work with more than an individual photo. 2009-08-10 23:11:31 -06:00
Bharat Mediratta 790545ac97 Add missing semicolons. 2009-08-10 10:49:50 -07:00
Chad Kieffer 24e29b0b68 Rename fit_image to fit_photo for consistency. 2009-08-09 23:10:02 -06:00
Chad Kieffer 69b7b1803a Move hover effect to a function. 2009-08-09 23:08:18 -06:00
Chad Kieffer a961211f56 Move the get photo filter out to it's own function for re-use. Docblock cleanup. 2009-08-09 22:51:21 -06:00
Chad Kieffer de00a4ac39 Explicitly use gValign class rather than first child. 2009-08-09 11:40:39 -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
Tim Almdal 1c5b04a2c5 Fix the problem where the login page and edit permission pages were
supersized based on ly last commit.
2009-08-08 16:26:34 -07:00
Tim Almdal aac06342b3 Merge branch 'master' of git://github.com/gallery/gallery3 2009-08-08 16:11:28 -07:00
Tim Almdal ae428a7e21 remove a debug statement left over from previous commit 2009-08-08 15:52:04 -07:00
Tim Almdal cb1ae141bb Create an new option 'immediate' and if set to true then don't try to set up click events, but just show the dialog. Also remove the destroy method and put all the cleanup into the dialog close handler 2009-08-08 15:46:53 -07:00
Tim Almdal 7b0ea229b8 Make the organize dialog open properly in IE8, Chrome and FF. For some reason (probably a timing thing) the height of the contents was not being set correctly in FF. So we just hard code an estimate of the size of the Draw handle, and message areas. 2009-08-07 17:07:04 -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
Bharat Mediratta a5137f5972 Remove boilerplate comment. 2009-08-07 11:17:07 -07:00
Tim AlmdalandBharat Mediratta 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 AlmdalandBharat Mediratta 30b77b5714 Forgot this file on the gallery dialog commit
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-08-08 02:08:34 +08:00
Tim AlmdalandBharat Mediratta 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
Tim Almdal 6abcc06e21 Refactor the gallery.panel.js as a jQuery widget.
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-08-07 21:22:14 +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
Tim Almdal 0a2da7731a Simplify getViewportSize function to use the jQuery height and width functions 2009-07-31 05:27:53 -07:00
Tim Almdal d34c6b6fb3 Move the getViewportSize method to gallery.common.js 2009-07-30 06:00:10 -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