Commit Graph
5668 Commits
Author SHA1 Message Date
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
Bharat Mediratta 628058b4ed Refresh from kohana svn trunk r3771 2008-12-15 08:52:32 +00:00
Bharat Mediratta 31759cb3b3 Delete trunk/kohana and trunk/modules/unit_test in preparation to refresh
them properly from the vendor branch.
2008-12-15 08:37:09 +00:00
Bharat Mediratta e73bd90285 Convert tabs to spaces 2008-12-15 08:35:46 +00:00
Bharat Mediratta 011fe8bc93 Get rid of windows line endings 2008-12-15 08:35:30 +00:00
Chad Kieffer cf47b3d45c Fix that rascal IE. Added conditional HTML comment to use fix-ie.css for IE7 and earlier. Fixed bg images in album/item view buttons, IE 6/7 don't appear to handle background-position: center center :( 2008-12-15 07:08:13 +00:00
Tim Almdal 20d5f45218 Fix the reference to jquery-ui.packed.js 2008-12-15 06:37:56 +00:00
Chad Kieffer c68a0823b9 Should be ul, not u#gLoginLink 2008-12-15 06:17:17 +00:00
Chad Kieffer 1a5da095ae Renamed vars used in dialog init to avoid confusion and conflicts. 2008-12-15 06:11:32 +00:00
Tim Almdal bc40b48729 revert the creation of a global gallery3 javascript variable 2008-12-15 05:08:22 +00:00
Tim Almdal 30c6ba48ea Forgot the quotes 2008-12-15 04:55:09 +00:00
Tim Almdal e665a21038 Set up a global gallery3 javascript variable where we can put things that need to be passed into the javascript 2008-12-15 04:53:16 +00:00
Tim Almdal 1cb0268589 Change the label on the watermark form upload element, so the error message is at least somewhat meaningful 2008-12-15 04:40:09 +00:00
Tim Almdal 15c22471cc Cleanup watermark.js 2008-12-15 04:23:57 +00:00
Bharat Mediratta 96d906c903 Update Forge to r168 from upstream.
Resolves these issues:
  http://code.google.com/p/kohanamodules/issues/detail?id=6
  http://code.google.com/p/kohanamodules/issues/detail?id=7
2008-12-15 03:59:03 +00:00