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
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
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
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
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
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
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
ff1979e12e
Fix XSS in tags JS
2009-09-01 01:12:02 -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
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
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
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
Tim Almdal
078c77a62b
Add tag autocomplete to the album and photo edit pop up dialogs.
...
This required putting a wrapper view around the forms and passing
this view as the parameter to the item_edit_form event. The view
contains a $script variable that the modules can add script to be
included in the form html when rendered as part of the ajax response.
2009-07-24 14:18:15 -07:00
Tim Almdal
fa1d32e646
Partial implementation of ticket #80 . Provide auto complete and suggestions on the tag add form in the tag sidebar block. Updated the xss golden file as well. Still to do figure out how toget it into the edit popup dialog
2009-07-24 11:24:43 -07:00
Tim Almdal
070884d9e2
Fix for ticket #496 . replace the src attribute (non standard) with the title attribute to contain the url of the tag cloud controller.
2009-07-23 10:23:00 -07:00
Bharat Mediratta
f7435112c5
Clean up JS/HTML so that renaming works properly (it had hardcoded
...
urls before). Clean up indentation and localization code while I'm
in there.
2009-04-03 22:53:43 +00:00
Jakob Hilden
b909132f54
tag changes in the tag admin should now work as expected
2009-03-25 04:47:25 +00:00
Bharat Mediratta
9f4fdcd8d5
Just reset the tag form after submission; no need to replace it with one from the backend because it's going to be the same form anyway.
2009-02-09 00:30:13 +00:00
Chad Kieffer
79e2c4bd47
Fixed indents
2008-12-30 01:21:09 +00:00
Bharat Mediratta
fdc0f83024
Big round of normalization of the way that our controllers
...
communicate. Almost all controllers now use JSON to speak to the
theme when we're dealing with form processing. This means tht we only
send the form back and forth, but we use a JSON protocol to tell the
browser success/error status as well as the location of any newly
created resources, or where the browser should redirect the user.
Lots of small changes:
1) Admin -> Edit Profile is gone. Instead I fixed the "Modify Profile" link
in the top right corner to be a modal dialog
2) We use json_encode everywhere. No more Atom/XML for now. We can bring those
back later, though. For now there's a lot of code duplication but that'll be
easy to clean up.
3) REST_Controller is no longer abstract. All methods its subclasses should create
throw exceptions, which means that subclasses don't have to implement stubs for
those methods.
4) New pattern: helper method get_add_form calls take an Item_Model,
not an id since we have to load the Item_Model in the controller
anyway to check permissions.
5) User/Groups REST resources are separate from User/Group in the site
admin. They do different things, we should avoid confusing overlap.
2008-12-25 05:12:46 +00:00
Bharat Mediratta
fd49c74607
Convert tag module over to returning JSON.
2008-12-25 01:34:17 +00:00
Chad Kieffer
26a512c352
Grouped inline form styles. No longer using gInline class in favor of specific form IDs that can be styled differently depending on which container they appear. Added gDescription class, dropped gUnderState for semantics. CSS cleanup.
2008-12-01 01:55:50 +00:00
Chad Kieffer
6c2869f822
Changed CSS organization, removed form section. Moved generic form CSS up to top of sheet and specific form styles to be adjacent to related content. This should ensure inheritance works generic down to specific. Removed #gAddTags in favor of #gTags form.
2008-11-29 21:30:30 +00:00
Bharat Mediratta
d16790de0c
Get rid of the placeholder "add tags here..." text, and clear the form
...
on submit.
2008-11-27 05:45:17 +00:00
Bharat Mediratta
72d16756b1
Refactor cloud generation into a helper so that we can call it from
...
Tags_Controller::_index(). This enables our Ajax code to reload the
tags block after we submit a new tag, so update the JS to do that
properly.
2008-11-27 05:37:20 +00:00
Bharat Mediratta
480abae401
Fix indentation.
2008-11-27 04:31:12 +00:00
Tim Almdal
b4b72b284b
We are now submitting the ajax tag add form to the server correctly and rehooking the ajaxForm
2008-11-27 01:48:01 +00:00
Tim Almdal
d881c91e0c
Trying to add tags, but it doesn't work yet. For some reason that i can't figure out, the form never validates and I never get into the true branch of the if. I'm taking a break for awhile.
2008-11-27 00:26:04 +00:00
Tim Almdal
03bf3a6af2
Remove the more or less links
2008-11-26 05:08:43 +00:00
Tim Almdal
1ea0382f53
Moving right along on tags. Now the threshold for which tags can be changed. The default is to show all the tags (i.e. count >= the minimum frequency) by clicking on the "See Less" link, the tag cloud will not show the minimum frequency, so the number of tags shown is smaller.
...
The "See More" link works the opposite way.
2008-11-25 22:38:11 +00:00