Chad Kieffer
01f6c67eb5
Added .gLoadingLarge and .gLoadingSmall to show ajax loading indicator. Applied to modal dialogs.
2008-12-17 06:22:08 +00:00
Bharat Mediratta
78cd00312e
Improve performance by finding the item without walking the tree.
...
Instead, use the level and the name to get a short list of candidates,
and check each one of those. In most cases, this query should give us
the right result the first time.
2008-12-17 05:53:05 +00:00
Bharat Mediratta
8630d61051
Change the album thumbnail/resize from _album.jpg to .album.pjg
...
because the leading underscore confuses the Kohana router.
2008-12-17 04:55:49 +00:00
Bharat Mediratta
fc7b78492b
Separate thumbnails out into var/thumbs. This clears up some ambiguity in Item_Model and simplifies
...
file_proxy. It also means we can stop munging file names in the var/resizes hierarchy.
In the process, rename "thumbnail" to "thumb" everywhere in honor of
Chad (well, ok because it's shorter)..
2008-12-17 04:45:35 +00:00
Tim Almdal
f8a0c91ce6
Drag & Drop the watermark now works and so does the dropdown box. The target image is divided into a 3x3 quadrant referenced as: northwest, north, northeast, west, center, east, southeast, south, southwest. Similiar to the imagemagik garvities. Currently the watermark is placed in the left top of the particular quadrant.
2008-12-17 01:26:40 +00:00
Chad Kieffer
9fa566a1c9
Added label to add tag form input
2008-12-17 01:19:13 +00:00
Chad Kieffer
3c05b95620
Added JS to set/reset simple forms' input values to their corresponding labels' value. Labels should always be used with visible inputs. Use this to style and control short form input display and behavior.
2008-12-17 00:45:52 +00:00
Bharat Mediratta
f4c6a20149
Remove error checking; if this fails let it fail noisily for now so that we can find problems faster.
2008-12-16 23:59:33 +00:00
Bharat Mediratta
af32e5708d
Remove all caching from ORM_MPTT. This was premature optimization: it
...
wasn't benefitting us, and it will get in the way when we want to add
implicit view protection to our queries.
2008-12-16 23:36:56 +00:00
Bharat Mediratta
34484fb1b5
Dump out the stack trace on errors.
2008-12-16 23:33:43 +00:00
Bharat Mediratta
59bb72df88
Fix preamble
2008-12-16 23:11:24 +00:00
Bharat Mediratta
8c7d0a76e5
Add file_proxy. This is controller gets triggered by .htaccess
...
protection on var/albums and var/resizes and only displays files to
the user if they have "view" permission on the base ite.
2008-12-16 23:07:33 +00:00
Tim Almdal
363548bfc4
2008-12-16 20:40:29 +00:00
Tim Almdal
b0c21915e9
Oops, remove the () on the parameter to $("#Dialog").ready(...) so we pass the function, not the results of the function call.
2008-12-16 19:16:34 +00:00
Tim Almdal
c32988a097
Separate the handling of the dialog resizing into the watermark.js, so we don't have to download the watermark dialog initialization with each request.
2008-12-16 19:12:24 +00:00
Tim Almdal
59bc7dc22c
1) change the selector for the the function to gDialog
...
2) Once the dialog is resized, center it
2008-12-16 19:06:03 +00:00
Tim Almdal
04441e11cc
1) Remove the load watermark from the scaffolding... use the menu option
...
2) The set watermark dialog is now sizing properly. @todo is recenter in the window
2008-12-16 17:30:18 +00:00
Tim Almdal
931d8c6bdc
Submit the form using ajaxSubmit
2008-12-16 17:26:19 +00:00
Tim Almdal
4c3c68ac10
Add Submit and Reset buttons to the dialog in order to trap the form submission so the form doesn't close. There might be a better way, but i couldn't think of it.
2008-12-16 16:29:59 +00:00
Bharat Mediratta
a0e07764c1
Make the breadcrumb a little larger
2008-12-16 11:04:47 +00:00
Bharat Mediratta
e2544da5b0
Alphabetize field names to make it easier to find 'em.
2008-12-16 08:27:06 +00:00
Bharat Mediratta
3e219aab6b
Change htaccess rules to use mod_rewrite
2008-12-16 08:17:00 +00:00
Bharat Mediratta
8bd7afeb5b
TEST_MODE always exists now, so check its value, don't rely on its existence to know that we're in test mode.
2008-12-16 05:13:04 +00:00
Bharat Mediratta
83363172b1
Don't use model_cache for get_version and set_version; that breaks the installer.
2008-12-16 05:04:42 +00:00
Bharat Mediratta
3273984582
Use model_cache::get() to reduce duplicate queries
2008-12-16 04:56:51 +00:00
Bharat Mediratta
65a340efd8
Fix a bug where we were using module::set_var() instead of module::get_var() resulting in
...
loading all photos in an album on a single page and updating the var on every page load.
2008-12-16 04:52:16 +00:00
Bharat Mediratta
e82b08db20
Make the profiler output more legible by adding some padding to the table.
2008-12-16 04:45:52 +00:00
Bharat Mediratta
52a7607336
Define TEST_MODE 0 when we're in production
2008-12-16 04:31:33 +00:00
Bharat Mediratta
d9e02a5d0c
Various optimizations:
...
o Add model_cache::get() which caches models avoiding duplicate lookups
o Stop using ORM relationships for Item_Model::owner so that we can use caching
o For Item_Model::xxx_edit fields, don't make them editable for guests
o Other minor stuff.
These optimizations reduce the number of queries for a 9-photos page from ~200
to ~45. Still way too many!
2008-12-16 04:29:00 +00:00
Bharat Mediratta
dc08917345
Fix a bug where we were not deleting the .htaccess file on access::reset()
2008-12-16 02:31:13 +00:00
Bharat Mediratta
02aa98b6e0
Colorize test output
2008-12-16 02:25:47 +00:00
Bharat Mediratta
61618af0db
Create and delete .htaccess files based on the view permissions for
...
the group::everybody() user.
2008-12-16 01:04:19 +00:00
Bharat Mediratta
898d001330
Fix capitalization.
2008-12-16 00:50:51 +00:00
Bharat Mediratta
eecf7bd518
phpdoc cleanup
2008-12-16 00:31:50 +00:00
Bharat Mediratta
3d2fc86604
Permission only function on albums.
2008-12-16 00:30:05 +00:00
Tim Almdal
92e6ed8a8a
Start of the dialog to specify the watermark placement. For convience, using the imagemagik nomicalture regarding watermark locations (east, west, center, etc.)
...
You can drag the watermark around but it doesn't stay in place.
Need to figure out how to resize the dialog box
and all of the supporting javascript
2008-12-15 23:08:18 +00:00
Bharat Mediratta
2f8b4df0f5
Protect menus and blocks against the fact that we don't have an item
...
on tag pages.
2008-12-15 21:23:00 +00:00
Bharat Mediratta
743ffe96ed
Refresh from Kohana r3778.
...
Resolved tickets:
http://dev.kohanaphp.com/ticket/967
2008-12-15 21:18:38 +00:00
Bharat Mediratta
b6363bcb03
Update to reflect changes in Kohana ORM relationship code.
...
Now you must call ORM::save() after ORM::add() and ORM::remove().
2008-12-15 20:49:05 +00:00
Tim Almdal
1d3e1484a7
The admin high level menu is shown if the active user is not a guest. Other sub menus depend on the appropriate level of access
2008-12-15 19:51:49 +00:00
Bharat Mediratta
b9c45407ec
Reapply r18995: disable static table caches when we're in TEST_MODE.
2008-12-15 10:10:59 +00:00
Bharat Mediratta
3ae6ae53e6
(merge of vendor/kohana/modified/modules/unit_test r19226) Re-add english versions of unit test messages
2008-12-15 10:09:42 +00:00
Bharat Mediratta
8023325429
Fix Database::instance()->list_tables()
...
Upstream ticket:
http://dev.kohanaphp.com/ticket/967
2008-12-15 10:05:00 +00:00
Bharat Mediratta
3131662c19
Reapply r19116:
...
Add support for filtering tests down to the Class::method level.
Upstream ticket:
http://dev.kohanaphp.com/ticket/961
2008-12-15 09:51:48 +00:00
Bharat Mediratta
b5e6f79f5f
Reapply patch to make tests always call teardown.
...
Upstream ticket:
http://dev.kohanaphp.com/ticket/960
2008-12-15 09:45:55 +00:00
Bharat Mediratta
7b5713d485
(merge of vendor/kohana/modified r19221) Remove captcha, swift and pagination message catalogs; we don't need those
2008-12-15 09:34:54 +00:00
Bharat Mediratta
0567334c62
(merge of vendor/kohana/modified r19219) Add back in English localization strings, else we're missing a lot of critical strings at development time
2008-12-15 09:31:55 +00:00
Bharat Mediratta
93977e579c
Refresh of Forge r168 from vendor/forge/modified
2008-12-15 09:22:32 +00:00
Bharat Mediratta
4fe895a2c4
Delete forge in preparation to refresh it from vendors/forge/modified
2008-12-15 09:21:44 +00:00
Bharat Mediratta
3b35e8b91c
Refresh kohana from upstream svn trunk r3771.
...
During this process, remove a considerable number of files from kohana
that we will not be needing in Gallery3, including the following files
and directories:
kohana/application
kohana/example.htaccess
kohana/index.php
kohana/install.php
kohana/kohana.png
kohana/modules/archive
kohana/modules/auth
kohana/modules/flot
kohana/modules/gmaps
kohana/modules/kodoc
kohana/modules/payment
kohana/modules/smarty
kohana/modules/unit_test/i18n
kohana/modules/unit_test/tests/Example_Test.php
kohana/modules/unit_test/tests/Valid_Test.php
kohana/system/config/captcha.php
kohana/system/controllers/captcha.php
kohana/system/fonts
kohana/system/i18n
kohana/system/libraries/Calendar.php
kohana/system/libraries/Calendar_Event.php
kohana/system/libraries/Captcha.php
kohana/system/libraries/Tagcloud.php
kohana/system/vendor
kohana/system/views/pagination
kohana/system/views/kohana_calendar.php
2008-12-15 08:56:18 +00:00