fix: GalleryAlbum and Photo were not showing correct confirmation messages on editSave

add: Ability to edit comments to Photos
add: Ability to choose which rich editor for Albums
This commit is contained in:
Doug Bell 2008-03-04 21:26:30 +00:00
parent a69dff3dcf
commit 8af6f28988
10 changed files with 340 additions and 122 deletions

View file

@ -2,6 +2,8 @@
- fixed: Several typos in the new Calendar help documentation.
- fix: List View now starts at the beginning of the day passed in.
- Removed some spurious warnings from the calendar.
- Added ability to edit comments. Entirely changed how comments work in prep
for turning it into a mixin.
7.5.4
- fixed: unable to remove calendar feeds in IE6

View file

@ -23,17 +23,44 @@ my $quiet; # this line required
my $session = start(); # this line required
# upgrade functions go here
addGalleryEditCommentTemplate( $session );
addGalleryRichEditAlbum( $session );
finish($session); # this line required
##-------------------------------------------------
##---------------------------------------------------------------------------
#sub exampleFunction {
# my $session = shift;
# print "\tWe're doing some stuff here that you should know about.\n" unless ($quiet);
# # and here's our code
#}
#----------------------------------------------------------------------------
# Add a column to the Gallery
sub addGalleryEditCommentTemplate {
my $session = shift;
print "\tAdding Edit Comment Template... " unless $quiet;
$session->db->write( q{
ALTER TABLE Gallery ADD COLUMN templateIdEditComment VARCHAR(22) BINARY
} );
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Add a column to select rich editor for albums
sub addGalleryRichEditAlbum {
my $session = shift;
print "\tAdding Select Rich Editor for Gallery Albums..." unless $quiet;
$session->db->write( q{
ALTER TABLE Gallery ADD COLUMN richEditIdAlbum VARCHAR(22) BINARY
} );
print "DONE!\n" unless $quiet;
}
# --------------- DO NOT EDIT BELOW THIS LINE --------------------------------