Chad Kieffer
d581bbbd1e
Renamed more CSS selectors from gName to g-name.
2009-10-04 15:53:00 -06:00
Chad Kieffer
3e6ba7acc3
Renamed most, if not all css selectors from gName to g-name. Moved a few shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-10-04 00:27:22 -06:00
Chad Kieffer
e1e8904e4a
Convert gDialog and gCancel over to g-dialog and g-cancel. Refactor CSS id's and classes in the login/reset password dialog.
2009-09-30 22:49:36 -06:00
Chad Kieffer
1f02c1ef6e
Apply gModuleStatus to server add status message.
2009-09-30 22:48:05 -06:00
Tim Almdal
cf89015a29
Change the fix for ticket #775 to always add the Add menu, but not add any items if the album directory is not writable.
2009-09-19 09:34:27 -07:00
Tim Almdal
4e6f2f1b4c
Don't display the add menu if the underlying operating system directory is not writable. THis should fix ticket #775
2009-09-18 23:53:48 -07:00
Tim Almdal
be84c7be25
* Changed the close functionality so the page is reloaded when the dialog is closed.
...
* Renamed the ServerAddCloseButton.
* Added Pause and Continue buttons. Now when add is clicked, A Pause button is shown,
once the adding is complete, the add button is reshown andpause button is hidden.
Clicking the pause button will hide it and show a continue button.
2009-09-18 12:17:58 -07:00
Tim Almdal
15c3f0b1aa
Refactor the server add javascript into a ui.gallery_server_add widget.
2009-09-17 21:26:55 -07:00
Tim Almdal
6469763225
Reload the album when server_add dialog is closed
2009-09-17 11:10:15 -07:00
Tim Almdal
c7f8d8be6f
Don't try to creat an album that corresponds to the staging directory. Just add the contents of the staging directlyinto the album that server_add was invoked from. Fixes ticket #785
2009-09-17 10:57:22 -07:00
Tim Almdal
be1d49d017
Change the timeout on resubmitting the next task iteration to 25ms instead of. This allows the jQuery.ajax method to complete its processing. Otherwise, the browser can spend time thrashing around trying to send the next request.
2009-09-17 10:55:50 -07:00
Tim Almdal
a5af531fbe
Don't show links as part of the auto complete list
2009-09-17 07:04:11 -07:00
Bharat Mediratta
c3f8b62376
Adjust the text of the symlink error message.
2009-09-15 19:57:12 -07:00
Jan Koprowski
7cc37451f4
Forbid from add symbolink link in admin server add. Read ticket #744 for more details.
2009-09-15 19:55:16 -07:00
Bharat Mediratta
ac8c9d6670
Fix indentation.
2009-09-06 11:26:20 -07:00
Andy Staudacher
ddb84c84e1
Rename mark_safe() to mark_clean()
2009-08-31 00:42:18 -07:00
Andy Staudacher
2bf9b8ee55
Fix double -> single quotes (::js_string returns a double-quotes delimited string)
2009-08-30 23:11:13 -07:00
Andy Staudacher
bd52a85f98
(mostly harmless) XSS fix in server add
2009-08-30 21:34:55 -07:00
Andy Staudacher
e7f5e0a9a3
Merge commit 'upstream/master'
...
Conflicts:
modules/gallery/views/l10n_client.html.php
modules/organize/views/organize_tree.html.php
modules/server_add/helpers/server_add_event.php
2009-08-30 18:27:40 -07:00
Andy Staudacher
df38a890a6
Tabs to spaces cleanup
2009-08-30 18:07:13 -07:00
Andy Staudacher
effccfd41d
Change all instances of SafeString::of_safe_html() to html::mark_safe() in views.
2009-08-30 07:00:56 -07:00
Andy Staudacher
b9bd1681a3
Update all code to use helper method html::clean(), html::purify(), ... instead of SafeString directly.
2009-08-29 22:54:20 -07:00
Bharat Mediratta
4bc7165dab
Delete obsolete comment and tighten the code in site_menu().
2009-08-29 16:42:33 -07:00
Andy Staudacher
b4b638be44
Undo url helper changes - url methods no longer return a SafeString.
...
Adding SafeString::of_safe_html() calls where urls are passed as parameters to t() and t2().
2009-08-29 16:28:30 -07:00
Andy Staudacher
0204617b60
XSS fixes
2009-08-29 15:41:02 -07:00
Andy Staudacher
a5dfc81a8f
Merge commit 'upstream/master'
...
Conflicts:
modules/akismet/views/admin_akismet.html.php
modules/comment/helpers/comment_rss.php
modules/gallery/helpers/gallery_rss.php
modules/gallery/libraries/I18n.php
modules/gallery/views/permissions_browse.html.php
modules/gallery/views/simple_uploader.html.php
modules/info/views/info_block.html.php
modules/organize/controllers/organize.php
modules/organize/views/organize.html.php
modules/organize/views/organize_album.html.php
themes/default/views/album.html.php
themes/default/views/movie.html.php
themes/default/views/photo.html.php
2009-08-29 14:17:48 -07:00
Andy Staudacher
c01ac42c46
Refactor all calls of p::clean() to SafeString::of() and p::purify() to SafeString::purify().
...
Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-08-29 12:48:40 -07:00
jhilden
746609b967
* created new generic "Add" dropdown in the site menu. this should take care of ticket #537
...
* removed start/stop translation menu items from the admin, since they are on the languags admin page now
2009-08-29 14:27:08 -04:00
Bharat Mediratta
a28dd09c4e
Properly deal with invalid images. This fixes ticket #611 which shows
...
a BMP masquerading as a .jpg causing us to be unable to rebuild
resizes and thumbnails. Now if that happens, we discard the file, log
it and move on.
2009-08-27 17:04:48 -07:00
Bharat Mediratta
4828db003f
Remove 'ENGINE=InnoDB' specification from tables that we create. Use
...
the system's default table specification. Fixes ticket #597 .
2009-08-27 15:47:54 -07:00
Tim Almdal
afa8cade7f
Fix for ticket #590 . The gallery.dialog.js looks for an element "#dialog #gProgress" and if it finds it assumes that it is a progress dialog and removes the title. This pathc changes the name of the div containing the progress bar to gServerAddProgress and avoids the issue.
...
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca >
2009-08-18 05:18:41 +08:00
Tim Almdal
a302a9c3fa
Refactor the gallery dialog into a jQuery widget
...
Signed-off-by: Bharat Mediratta <bharat@menalto.com >
2009-08-08 02:08:28 +08:00
Bharat Mediratta
f0b3d37d18
Chain some jQuery calls together to reduce lines of code.
2009-08-05 22:17:03 -07:00
Tim Almdal
9f396178ce
Revert "Allow a theme to override the page refresh mechanism. Create a new"
...
This reverts commit 1f014aae6c .
2009-08-05 09:24:27 -07:00
Tim Almdal
2f63a5379f
Merge branch 'master' of git@github.com:gallery/gallery3
2009-08-05 06:51:27 -07:00
Bharat Mediratta
b9a6cd45ba
Skip empty files, since we know they're broken. Fixes ticket #610 .
2009-08-04 20:35:13 -07:00
Tim Almdal
3461b4e8e6
Merge branch 'master' of git@github.com:gallery/gallery3
2009-07-28 20:49:50 -07:00
Bharat Mediratta
1e90e40d3a
Use events to generate menus, instead of having xxx_menu helpers.
...
This is the first step towards having a simple, lightweight and
unified API for module interaction.
2009-07-28 13:47:22 -07:00
Tim Almdal
1f014aae6c
Allow a theme to override the page refresh mechanism. Create a new
...
javascript lib (gallery.reload.js) which defines the functions
gallery_reload() and gallery_location(new_location). They just
do a window.location.reload() and window.location = new_location.
This change breaks the assumption that all themes will handle page reloads
the same and allows the theme to customize the page refresh.
2009-07-27 12:39:12 -07:00
Bharat Mediratta
0bf69c63d8
Don't escape & in JS text; it triggers the "Disallowed key characters
...
in global data." check in the Input library.
2009-07-23 16:58:26 -07:00
Bharat Mediratta
dbeadc1407
Use the Kohana cascading filesystem to locate resources loaded by the
...
theme. Because the theme comes first, this means that themes can
override any module resources, at the cost that we no longer have
namespacing for JS and CSS files.
The only file getting used outside of this model is
themes/default/screen.css which is used in the admin theme. I fixed
that by copying screen.css into admin_default and renaming its
screen.css to admin_screen.css. I also copied over all the images
that it was referencing.
Fixes tickets #48 and #539 .
Theme API changes:
- theme_script(), theme_url() and theme_css() are no longer needed
- script(), url() and css() now refer to the first matching asset in
the module load path, where gallery3/lib is at the end of the path
2009-07-22 14:27:57 -07:00
Bharat Mediratta
050c82cf80
Escape bare & symbols so that we use valid entities. Fixes ticket #577 .
2009-07-21 11:09:23 -07:00
Shai Ben-Naphtali
5a0424f458
Fix some consistency in text.
...
This fixes ticket #546
Signed-off-by: Bharat Mediratta <bharat@menalto.com >
2009-07-21 13:18:59 +08:00
Andy Staudacher
33d0b82d02
Fix l10n message inconsistency, ticket 546
2009-07-19 15:45:16 -07:00
Bharat Mediratta
4720e45641
Don't use "else" clauses in upgrade() -- it prevents multiple version bumps at once.
2009-07-14 12:55:03 -07:00
Bharat Mediratta
e2a9a1d284
Add quotes around all values that contain spaces in them, and add a
...
test to make sure that we continue to do so.
This makes sure that we don't have problems with 5.3 which treats the
literal "on" as a boolean.
2009-07-13 10:36:55 -07:00
Bharat Mediratta
cbd80b5ff9
Get rid of the form from server_add, we're not using it.
...
Turn the cancel link into a themed close button which triggers a page
reload.
Add some padding to the left of the tree.
2009-07-11 07:37:49 -07:00
Bharat Mediratta
171522bf23
Add a "close" button.
2009-07-11 07:23:31 -07:00
Bharat Mediratta
22fcb4c776
Forgot to bump the version up to 3
2009-07-11 05:14:02 -07:00
Bharat Mediratta
954ab5a505
Further simplify server_add (and bump it to version 3).
...
Now we don't have checkboxes, but instead we restrict you to selecting
directories and albums from only one level in the hierarchy. This
makes it easier for us to make sure that we properly create the
hierarchy that you want and avoid confusion about what's going to wind
up where.
Modify Server_Add_File_Model to have a parent_id and item_id and then
modify them as we go so that we can build up a tree structure there
*before* we create any items. This makes it much easier to figure out
where a new item is going to go and get rid of a bunch of probably
buggy code in the main task.
2009-07-11 05:03:36 -07:00