summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-12-05Added album and item view icons (album, hybrid, slideshow, full size). Added ↵Chad Kieffer
"Options" menu placeholder to display item options (add, edit, subscribe, permissions, etc.). Renamed gAlbumHeaderMenu to gItemMenu which can be used on both album and item views.
2008-12-05Don't need to pass the event, it's not used.Chad Kieffer
2008-12-05Read that $("#Selector").length was a good way to check whether an element ↵Chad Kieffer
exists in the DOM/jQuery object.
2008-12-05* Add a moveTo unit testTim Almdal
* Pass the module::event(..., $data) by reference to the handlers
2008-12-05Removed right border off of #Content container, don't need the separation ↵Chad Kieffer
between it and the Sidebar.
2008-12-04Tweak some issues with the moveTo ProcessingTim Almdal
2008-12-04Moving albums around with a drag and drop interface seems to work and ↵Tim Almdal
preserve the left right pointers. * changed _lock and _unlock to protected methods lock and lock respectively * added a moveTo method on the Item_Model * Corrected the hole closure on delete. * added moveTo on the ORM_MTPP class * Changed the rearrange javascript to do moves with ajax
2008-12-04Fix up the test framework to work now that we're only loading installed modulesBharat Mediratta
via the autoloader.
2008-12-04Change the startup code to only put installed modules on the autoloadBharat Mediratta
path. This breaks a bunch of places where we had hardcoded dependencies, so guard all of those cases. Restructure module::available() a bit and the way that we do install/uninstall in the scaffolding.
2008-12-04remove unused ->rootTim Almdal
2008-12-04Improvements to access helper.Bharat Mediratta
o Rename access::remove_group() to access::delete_group() for consistency. o Wrote more unit tests o Tests found a bug in access::remove_item() .. yay!
2008-12-04Get rid of the rearrange helper as the code could be inlinedTim Almdal
2008-12-04Remove an resemblence to a RESTful controller from Rearrange_ControllerTim Almdal
2008-12-04Fix indentationBharat Mediratta
2008-12-04style updatesBharat Mediratta
2008-12-04Implement ORM_MPTT::delete() properly.Bharat Mediratta
Inline ORM_MPTT::_grow() for now Rewrite ORM_MPTT tests to be domain specific; they no longer use album/photo helpers.
2008-12-04Rename Directory_Helper_Test to Dir_Helper_TestBharat Mediratta
2008-12-04Replace grow_test and constrict_test with add_hierarchy_test andBharat Mediratta
delete_hierarchy_test. Our tests will be more robust if we test the public API and not the internal private functions. If we get to the point where we have to test the private functions, we should probably move those functions into their own separate class with a public API.
2008-12-04Add unit tests to test growing and contracting the left and right pointersTim Almdal
Added a delete method to ORM_MPTT that contracts the tree when an item is deleted
2008-12-04Before deleting an item, save the path to the image in the var directory as ↵Tim Almdal
once the item is deleted, the $item->file_path() is no longer valid.
2008-12-03Fix internationalized string.Bharat Mediratta
2008-12-03Rename file::unlink() to dir::unlink(). This creates an API that isBharat Mediratta
clearer about its actions, otherwise we may accidentally blow away an entire hierarchy when we think we're deleting a single file (there's a reason why rm won't let you delete dirs that aren't empty!) Name it "dir" instead of "directory" because apparently "directory" is already reserved. Move the delete call out of Items_Controller and into the model. The model is responsible for keeping state integrity, not the controller.
2008-12-03Remove @todoTim Almdal
2008-12-03Add a MY_file class that extends the file helper by creating an unlink ↵Tim Almdal
method that deletes a file or an album directory. Modify Items_Controller::_delete to call this new helper method when deleting an item
2008-12-03Implement two testsBharat Mediratta
2008-12-03Fix a bug where we weren't actually deleting permissions (hooray for unit ↵Bharat Mediratta
tests!)
2008-12-03Make sure that we always run teardown, even when the test throws an exceptionBharat Mediratta
2008-12-03Drag and drop seems to work in the rearrange moduleTim Almdal
2008-12-03If the the post and get arrays don't contain a _method parameter, then use ↵Tim Almdal
the request::method() to determine the actual request method (i.e. delete doesn't show up in either places)
2008-12-03Test stubsBharat Mediratta
2008-12-03Add a filter to unit tests. Now you can do 'php index.php Album_Helper_Test ↵Bharat Mediratta
Photo_Helper_Test' to just run those two
2008-12-03Move the form html into the controllerBharat Mediratta
2008-12-03Add /welcome/form/add/photos to give you the add photo form.Bharat Mediratta
2008-12-03Put the output in pretty ASCII boxes.Bharat Mediratta
2008-12-03Re-enable access_cache propagation now that we've patched the MySQL driver.Bharat Mediratta
2008-12-03Don't cache the table field definition when we're in test mode, elseBharat Mediratta
all the table changing shenanigans we do to add permissions and groups will fail to register.
2008-12-03get rid of a stray space that was breaking the File_Structure_TestBharat Mediratta
2008-12-03Temporarily disable some code to get tests to pass.Bharat Mediratta
2008-12-03Fix errors in the preambleBharat Mediratta
2008-12-03Make sure that the dev is not using the same db for tests as they are for ↵Bharat Mediratta
production (this one's for you, valiant!)
2008-12-03Drop the database and rm -rf test/var instead of calling uninstall onBharat Mediratta
all modules. This guarantees a clean start w/out worrying about weirdness in the uninstaller code.
2008-12-03Drop the right tables at uninstall timeBharat Mediratta
2008-12-03Grouped Ajax/Dom scripting related styles (gInPlaceEdit, gClose, etc.). ↵Chad Kieffer
Began gInPlaceEdit styles.
2008-12-03Rename generic test.php to gallery_unit_test.php to make navigation to this ↵Bharat Mediratta
file a little easier
2008-12-03Fix a bad copy/pasted commentBharat Mediratta
2008-12-02Removed per jozefsBharat Mediratta
2008-12-02Remove the variable from inside _()Tim Almdal
2008-12-02The rearrange module will now add an album if you drag the "new album" onto ↵Tim Almdal
the album tree. I haven't had a chance to figure out why the form does get any styling or why a textarea is no included as a list item.
2008-12-02Oops, this was missing from the last fix.Bharat Mediratta
2008-12-02Fix a problem in _update_access_cache() where if the intent isBharat Mediratta
default, we weren't properly propagating ALLOW where necessary.