Commit Graph
6238 Commits
Author SHA1 Message Date
Bharat Mediratta edf2a46b02 horizontally center thumbnails 2011-01-06 00:05:35 -08:00
Bharat Mediratta b424cac5c5 Double clicking on an album switches to that album, selects it in the
tree and expands it if it's not already expanded.
2011-01-05 22:48:27 -08:00
Bharat Mediratta 2167168f51 Get rid of the expando caret in front of empty folders 2011-01-05 22:32:33 -08:00
Bharat Mediratta aebcd44513 Swap organize_frame and organize_dialog since they were semantically
reversed.  organize_dialog contains the stuff that pops up in the dialog,
organize_frame contains the stuff that's in the embedded iframe.
2011-01-05 22:19:33 -08:00
Bharat Mediratta e6b3886f8f Functional improvements:
- Add support for dragging a selection box.

Visual improvements;
- The "ghost" selection now has minimized thumbnails so that
  you're dragging a smaller div around the screen.
2011-01-05 22:15:13 -08:00
Bharat Mediratta 9863743001 Only refresh the tree when we move albums around. 2011-01-05 21:22:41 -08:00
Bharat Mediratta ce70669b8f Visual tweaks for IE8 compatibility.
Set the min width and min height to what IE8 wants the thumbnail's box
to be when the inner image maxes out at 120 pixels (specified in
Organize_Controller::album_info()).

Avoid using inline-block.
2011-01-05 21:17:27 -08:00
Bharat Mediratta e2b0f92007 Keep Item_Model::scale_dimensions from upscaling. Fixes #1579. 2011-01-05 21:05:20 -08:00
Bharat Mediratta b8124efbd8 Refactor generic error handling code. It still shows a pretty lame error message.
Add a comment explaining the TreeLoader preload hack.
2011-01-05 20:37:14 -08:00
Bharat Mediratta 28760daaef Improve IE grid compatibility by forcing a regular width/height for
thumbnails and using float: left.
2011-01-05 20:11:32 -08:00
Bharat Mediratta 372905bd13 Support moving an item before or after the target. 2011-01-05 02:00:40 -08:00
Bharat Mediratta c590f881eb single -> double quotes. 2011-01-05 01:25:17 -08:00
Bharat Mediratta 3a11e0d825 This was left out of 31652eae44. 2011-01-04 22:21:02 -08:00
Bharat Mediratta bd5e71ba6a More drag/drop tweaks.
- Fix a bug in the prior commit where we could no longer drag/drop in
  the thumb_data_view.
- Change the CSS class when dropping items in the tree panel to be a
  check box, not a plus symbol.
2011-01-04 22:20:24 -08:00
Bharat Mediratta 31652eae44 Drag/drop improvements:
- Restrict drag and drop to albums where the user has edit permissions.
- Use the existing TreeDropZone instead of making a new DropZone to take
  advantage of TreeDropZone features.
- Properly use dropConfig in TreePanel.
2011-01-04 22:00:30 -08:00
Bharat Mediratta b692d55ad4 Convert "\w-" in regexes to "\w\-" for compatibility with some versions
of Chrome 10.x.

references:
 http://www.sencha.com/forum/showthread.php?117836-3.3.1-Invalid-regular-expression
 http://code.google.com/p/v8/source/detail?r=5911
 http://trac.webkit.org/changeset/73594
 http://codereview.chromium.org/5703001/

This change has been reverted in Chrome, and the regex was fixed in ExtJS so
this patch should be short lived.
2011-01-04 11:50:25 -08:00
Bharat Mediratta caf454f326 Add missing images 2011-01-04 00:15:56 -08:00
Bharat Mediratta 51d66df192 Switch to using Ext.Element.mask for a custom busy message that looks
a little cleaner.
2011-01-04 00:15:05 -08:00
Bharat Mediratta 79f27ea1ec Remove a bunch of trailing commas from arrays to make IE happy. 2011-01-03 22:59:07 -08:00
Bharat Mediratta 3928058ba5 Fix a few small visual issues:
- Let the thumb data view scroll on drag/drop
- Switch the album panel to be a FitLayout and use a title and
  bbar instead of nested panels.
- Set the tree_panel width to be 200px to start.
2011-01-03 22:31:20 -08:00
Bharat Mediratta 0cd1ccfdc2 missing image 2011-01-03 21:45:37 -08:00
Bharat Mediratta 90852b1929 whitespace fix. 2011-01-03 21:23:21 -08:00
Bharat Mediratta 8e21dda195 Complete rewrite of the organize module in Javascript using the Sencha
JavaScript library.  It's got all the functionality from the Flash
version except it doesn't support creating new albums or uploading
photos.

Only tested in Chrome 10.0.x so far.
2011-01-03 20:24:21 -08:00
Bharat Mediratta 21ad2c64ff Merge branch 'master' of github.com:gallery/gallery3 2011-01-03 11:42:45 -08:00
Bharat Mediratta 4a88210825 Follow on to cfaa62370e to fix indentation.
Fixes #1569.
2011-01-03 11:41:25 -08:00
Joe7andBharat Mediratta f364e8a96b Using array support introduced in 8295201adf948ea35f21f75801b7a8bf36c27569 2011-01-03 11:38:21 -08:00
Joe7andBharat Mediratta cfaa62370e Reimplemented Kohana 2.3's View::set_global() with array support.
Allows for cleaner code and fewer function calls.
2011-01-03 11:38:13 -08:00
Bharat Mediratta 8263cb023f Updated installer for the bump of the gallery module to v43. Fixes #1568. 2011-01-03 11:14:58 -08:00
Joe7andBharat Mediratta e6a5f39b91 case fix 2011-01-03 11:10:31 -08:00
Joe7andBharat Mediratta 70ac063c55 case fix 2011-01-03 11:08:28 -08:00
Joe7andBharat Mediratta b26eff7f23 Bugfix: input validation validates description up to length of 65535 chars, but DB trimmed data over 2048 chars. Converting column into TEXT type.
Note: The effective maximum length of a VARCHAR in MySQL 5.0.3 and later is subject to the maximum row size (65,535 bytes, which is shared among all columns) and the character set used.
In contrast to CHAR, VARCHAR values are stored as a one-byte or two-byte length prefix plus data. The length prefix indicates the number of bytes in the value. A column uses one length byte if values require no more than 255 bytes, two length bytes if values may require more than 255 bytes.
2011-01-03 11:08:21 -08:00
Joe7andBharat Mediratta 7ce902d373 Removed accidental whitespace 2011-01-03 11:01:09 -08:00
Joe7andBharat Mediratta 336632fea0 Keep view counters of all item types accurate
Added common increment_view_count() func in item model for reuse
2011-01-03 11:01:02 -08:00
Bharat Mediratta e760200eee Identify the case where the active sidebar blocks didn't produce any
content and print out a more informative message in that case.  Fixes
2010-12-31 22:49:57 -08:00
Bharat Mediratta affbc28876 Update gallery module to v42 to reflect key changes in the cache
table in 440597356d for #1559.
2010-12-31 22:29:00 -08:00
Bharat Mediratta 866a7a87b7 Merge branch 'master' of git://github.com/Joe7/gallery3 2010-12-30 01:38:21 -08:00
Bharat Mediratta a8b0254e4a Improve the solution for #1545 by sorting the settings menu properly
to be naturally ordered and case insensitive.
2010-12-29 17:31:28 -08:00
Bharat Mediratta dd6da5e233 Add a minified version of json2.js from https://github.com/douglascrockford/JSON-js/blob/master/json2.js
by Douglas Crockford at 8d11dc6950eafc7d01f141ce91d4f585caa29f3b.  Fixes #1351.
2010-12-29 11:59:44 -08:00
Bharat Mediratta 3e117fc2b4 Remove a stray comma at the end of a JSON array which was breakig IE. Fixes #1561. 2010-12-29 11:33:08 -08:00
Joe7andBharat Mediratta 17700b805f Coding style fixes: identation on line 48+removed trailing whitespaces, added spaces around =s 2010-12-28 23:14:04 -08:00
Joe7andBharat Mediratta 869bba5e13 Truncating table first againt collides when converting INDEX into Unique 2010-12-28 23:14:04 -08:00
Joe7andBharat Mediratta 440597356d Added changes to installer and upgrader scripts to support INSERT ON DUPLICATE KEY UPDATE SYNTAX in cache lib 2010-12-28 23:14:04 -08:00
Joe7andBharat Mediratta 66fd8c7518 Using ON DUPLICATE KEY UPDATE instead of SELECT+UPDATE/INSERT style method (that does 2 trips to Database server and is less optimal).
exists() method is not needed anymore thus got removed
2010-12-28 23:14:04 -08:00
Joe7andBharat Mediratta fda9250796 Added limit on select as for the outcome it doesn't matter if there are 20 rows or just 1. Is sufficient to return straight after reading 1 row. 2010-12-28 23:14:04 -08:00
Bharat Mediratta b42fcb9cda Use db::expr instead of "new Database_Expression". Resolves #1560. 2010-12-28 23:10:05 -08:00
Bharat Mediratta 9f3c6e4bee Update test to match change in Item_Model::as_restful_array made in
7e31f97b4c for #1536.
2010-12-28 22:00:25 -08:00
Bharat Mediratta 5d37d529b0 Update golden file to reflect the change in
c989981041 for #1520.
2010-12-28 21:56:31 -08:00
Joe7 c5473ec4c0 Coding style fixes: identation on line 48+removed trailing whitespaces, added spaces around =s 2010-12-28 22:28:55 +01:00
Joe7 3c31237406 Truncating table first againt collides when converting INDEX into Unique 2010-12-28 18:42:43 +01:00
Joe7 15792c4ddf Added changes to installer and upgrader scripts to support INSERT ON DUPLICATE KEY UPDATE SYNTAX in cache lib 2010-12-27 22:16:29 +01:00