Note: Please carefully review the changes as I'm not sure if I
did it correctly. I tested it and it installed fine in both
cases(without an option and with option -n followed by
db-install script.
The show content window size is detemined dynamically based on
browsers viewport size.
I'm not sure what the size should be. So I set width and height
as like following:
width = viewport width * 4/5
height = viewport height * 2/3
Ratio can be easily changed.
Note: Please carefully review the changes as I'm not sure if I
did it correctly. I tested it and it installed fine in both
cases(without an option and with option -n followed by
db-install script.
-changed it so that the "x" is still visible, but when clicking,
an error message shows. Did this because the columns were resizing
when the x wasnt visible. Also the empty column looked weird with only
one user.
Fixed.
1. It only clears the left window form if 'delete' action is
clickced on the opened playlist.
2. similar functionality was implemented when 'edit meatadata'
form is opened in the left window.
Notes:
1. Not sure if "Untitled Show 1" would be the best name.
What if "Untilted Show 1" already exist? There is no easy way
of keeping track of the numbers. So wouldn't it be better to just use
"Untitled Show"?
2. There is no easy way to figure out if the current form is
opened for "update" or "add".( We can check the text on the button
if it says "add" or "update" button, but it's always bad to rely on
any UI text. So the new code will focus and higlight name text on both
update and create new case for now.
Download action were added in two placese.
1. Playlist Builder. jjmenu now showing 'Download'.
2. Calendar-> Show Content. Click on the file, you will see
Downlaod menu.
Limitation:
File name is set to original file name.
On the ticket it said, file format should be like
"show_name-12012011-2130.mp3". However, in my opinion,
this is only possible, if a user downloads it from
calender->show content. We know what the show names and etc,
but, if the user downloads it from Playlist Builder, we cannot
retrive such information. To be consistent in both area, I just
set the file name to original file name. This can be easily
modified in the future.