Chad Kieffer
367e6a8983
Standardize message markup, make the update block status message translatable.
2009-10-23 05:41:41 -07:00
Chad Kieffer
093b209807
Removed console.log() debug output.
2009-10-20 23:22:16 -06:00
Chad Kieffer
5d66416b26
Minor tag admin style updates.
2009-10-20 21:34:47 -06:00
Chad Kieffer
1dd4e4a427
Update tag error messages to use g-action-status and g-message-block. Style g-error for short forms.
2009-10-20 20:56:14 -06:00
Chad Kieffer
ba2d4b923b
Rollback tag admin to fix. Now functioning.
2009-10-20 20:20:48 -06:00
Chad Kieffer
c2b32cc2b8
Resolve merge conflict.
2009-10-18 22:45:13 -06:00
Chad Kieffer
47d4cd5cb4
Resolve tag module conflicts.
2009-10-18 20:32:33 -06:00
Chad Kieffer
5f56cbf997
Wrap all admin views in g-block and g-block content. This provides the means to visually separate the view's title and description from everything else. Primary admin view title should always be h1, and only one h1 per view. Removed some unused admin CSS id's.
2009-10-18 20:22:10 -06:00
Chad Kieffer
8cd8fa2b99
Fixed add tag short form layout.
2009-10-18 10:53:18 -06:00
Chad Kieffer
c9ccc24618
Moved the short_form init function to gallery.common and made it jQuery plugin. Dropped gallery.form.js. Applied short forms to server_add and tag admin pages. Added tag.css to admin views. Added .g-wide {}.
2009-10-18 10:32:08 -06:00
Chad Kieffer
08a22f4a39
Add tag.css to tag admin page.
2009-10-17 21:59:53 -06:00
Chad Kieffer
6e4fe79217
White space fixes.
2009-10-17 16:40:55 -06:00
Chad Kieffer
b677eeb5ee
Missed this in last commit.
2009-10-17 12:57:34 -06:00
Chad Kieffer
f2b6ec6637
Move tag css from theme to the module. Introduced generic .g-inline class for inline elements, including lists and forms.
2009-10-17 12:48:54 -06:00
Chad Kieffer
c876ec1f50
Apply g-short-form directly to short forms rather than via JS. Comment updates in ui.init.js.
2009-10-16 00:00:52 -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
Tim Almdal
3ceb2775f8
adjust whitespace
2009-10-01 10:59:45 -07: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
Tim Almdal
a210878725
Merge branch 'master' into talmdal_dev
2009-09-30 07:37:14 -07:00
Tim Almdal
60d35b8992
Use the block_manager to manage site sidebar panels. Fixes ticket #110 .
...
* Extend block_manager to handle sidebar blocks. get_available has become get_available_admin_blocks, get_list becomes get_admin_list.
* Create new functions get_available_site_blocks which will look for gallery_block get_available_site_blocks.
* Refactor sidebar_blocks into a separate function and then call block_manager::get_html(site.sidebar). Convert image_block to use block management instead of theme::sidebar_blocks
* Change the block_manager api so that the theme is passed into the get method. convert info to the new sidebar block approach
* Convert the user module to use the new sidebar block structure. remove the installers for info and image_block modules.
* Convert tag and rss modules to the new sidebar framework. reset the version number to 1 for info and image_block modules.
* Change the get_html method to ignore empty blocks and change the individual handlers to return an empty string if no block is generated
* Add a warning message if no sidebar blocks are active and provide a link to the admin page that configures the sidebar.
2009-09-30 07:31:12 -07:00
Chad Kieffer
72672bda39
Replaced gButtonLink with g-button.
2009-09-30 08:04:49 -06:00
Chad Kieffer
daa3a2b43c
First round of CSS refactor updates. Added calls to gallery.common.css from wind and admin_wind. Replaced basic text align and block float classes. Removed section #2 from both themes screen styles.
2009-09-30 00:32:52 -06:00
Andy Staudacher
d050f0a246
Minor style fix: (string) $var, not (string)$var, and move the explicit cast down where it's needed.
2009-09-17 14:04:13 -07:00
Tim Almdal
2eeacd2656
use an implicit cast to convert the translated error message to a string as it is encoded by the json routines and will be treated as an object otherwise
2009-09-17 13:55:11 -07:00
Tim Almdal
48326ad017
Cleanup issues with the original fix for #779
2009-09-17 12:11:00 -07:00
Tim Almdal
5490057480
When editing tags in place, and there is a validation error, highlight the tag with a red border and show a statust message. This fixes ticket: #779
2009-09-16 12:27:13 -07:00
Andy Staudacher
f1887422f8
Stricter input handling (cast to int)
2009-09-15 23:07:41 -07:00
Andy Staudacher
7608870537
Controller auth / CSRF fixes
2009-09-15 22:51:49 -07:00
Andy Staudacher
e168e0dfae
CSRF / auth fixes, golden data file checkpoint
2009-09-15 21:50:48 -07:00
Bharat Mediratta
df85f43aa1
Remove unused $feed->link.
2009-09-08 17:05:38 -07:00
Andy Staudacher
ff1979e12e
Fix XSS in tags JS
2009-09-01 01:12:02 -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
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
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
Bharat Mediratta
7863aa16f9
Update tags module to notify modules when items related to a tag are
...
affected. Practically speaking this means that we'll reindex items
when tags are added or removed from them.
API change:
Remove item_related_updated_batch event.
Rationale:
While this is an efficient event, it requires module developers to
support two event APIs for staying up to date and increases the
likelihood that they'll forget one and have data corruption. Force
them all through the slower but more reliable pipe, for now. We
can always try to improve efficiency by using the batch_start and
batch_stop events.
2009-08-08 14:30:21 -07:00
Tim Almdal
445a8fb1b6
Change galleryPanel and galleryDialog widgets to gallery_panel and gallery_dialog respectively
...
Signed-off-by: Bharat Mediratta <bharat@menalto.com >
2009-08-08 02:08:42 +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
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
3461b4e8e6
Merge branch 'master' of git@github.com:gallery/gallery3
2009-07-28 20:49:50 -07:00
Bharat Mediratta
44bc74edb9
Change search callbacks to use the event system, so move them out of
...
xxx_search helpers and into xxx_event helpers.
2009-07-28 20:30:34 -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
a7f4d7aced
Revert commit 078c77a62b and change the
...
tag_event:item_edit_form to use the new Form_Script library to inject
script into a form.
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca >
2009-07-28 21:00:25 +08:00
Tim Almdal
2e8f73d4e9
Revert commit 078c77a62b and change the
...
tag_event:item_edit_form to use the new Form_Script library to inject
script into a form.
2009-07-28 05:40:28 -07:00
Tim Almdal
975a5ded7b
Clean up amd simplify the tag processing: Only allow comma separators between
...
phrases. Using only 1 separator cleans up the javascript as well, as we
can use some of the jquery autocomplete to set the tag separator.
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca >
2009-07-28 09:16:57 +08:00
Tim Almdal
4b6775e614
Clean up amd simplify the tag processing: Only allow comma separators between
...
phrases. Using only 1 separator cleans up the javascript as well, as we
can use some of the jquery autocomplete to set the tag separator.
2009-07-27 18:04:55 -07:00
Tim Almdal
ecc9203c23
Standardize the specification of tags.
...
With this patch a comma(,) is the only valid tag separator. Spaces
are allowed in tags and phrases no longer need to be specified with a
dot.
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca >
2009-07-28 06:28:31 +08:00
Tim Almdal
f21044ae1d
Standardize the specification of tags.
...
With this patch a comma(,) is the only valid tag separator. Spaces
are allowed in tags and phrases no longer need to be specified with a
dot.
2009-07-27 13:54:20 -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