summaryrefslogtreecommitdiff
path: root/modules/tag/js
AgeCommit message (Collapse)Author
2009-11-06The ajaxify_tag_form was not being called when the block was created. Moved ↵Tim Almdal
the code to ajaxify the add form into the block html and deleted tag.js. Fixes Ticket #872
2009-11-05Refactor out the in place editting and use the new gallery.in_place_edit ↵Tim Almdal
widget to manage the tag renames. Part the fix for ticket #750.
2009-10-23Standardize message markup, make the update block status message translatable.Chad Kieffer
2009-10-20Removed console.log() debug output.Chad Kieffer
2009-10-20Update tag error messages to use g-action-status and g-message-block. Style ↵Chad Kieffer
g-error for short forms.
2009-10-20Rollback tag admin to fix. Now functioning.Chad Kieffer
2009-10-18Wrap all admin views in g-block and g-block content. This provides the means ↵Chad Kieffer
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-18Moved the short_form init function to gallery.common and made it jQuery ↵Chad Kieffer
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-17Move tag css from theme to the module. Introduced generic .g-inline class ↵Chad Kieffer
for inline elements, including lists and forms.
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-10-01adjust whitespaceTim Almdal
2009-09-30Convert gDialog and gCancel over to g-dialog and g-cancel. Refactor CSS id's ↵Chad Kieffer
and classes in the login/reset password dialog.
2009-09-17Cleanup issues with the original fix for #779Tim Almdal
2009-09-16When editing tags in place, and there is a validation error, highlight the ↵Tim Almdal
tag with a red border and show a statust message. This fixes ticket: #779
2009-09-01Fix XSS in tags JSAndy Staudacher
2009-08-08Change galleryPanel and galleryDialog widgets to gallery_panel and ↵Tim Almdal
gallery_dialog respectively Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-08-08Refactor the gallery dialog into a jQuery widgetTim Almdal
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-08-05Revert "Allow a theme to override the page refresh mechanism. Create a new"Tim Almdal
This reverts commit 1f014aae6c16bbda62d8f5937180f11ccb0eb1b1.
2009-07-28Revert commit 078c77a62b623322956457bfd7bfbdaf56203b00 and change theTim Almdal
tag_event:item_edit_form to use the new Form_Script library to inject script into a form.
2009-07-27Clean up amd simplify the tag processing: Only allow comma separators betweenTim Almdal
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-27Allow a theme to override the page refresh mechanism. Create a newTim Almdal
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-24Add tag autocomplete to the album and photo edit pop up dialogs.Tim Almdal
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-24Partial implementation of ticket #80. Provide auto complete and suggestions ↵Tim Almdal
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-23Fix for ticket #496. replace the src attribute (non standard) with the title ↵Tim Almdal
attribute to contain the url of the tag cloud controller.
2009-04-03Clean up JS/HTML so that renaming works properly (it had hardcodedBharat Mediratta
urls before). Clean up indentation and localization code while I'm in there.
2009-03-25tag changes in the tag admin should now work as expectedJakob Hilden
2009-02-09Just reset the tag form after submission; no need to replace it with one ↵Bharat Mediratta
from the backend because it's going to be the same form anyway.
2008-12-30Fixed indentsChad Kieffer
2008-12-25Big round of normalization of the way that our controllersBharat Mediratta
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-25Convert tag module over to returning JSON.Bharat Mediratta
2008-12-01Grouped inline form styles. No longer using gInline class in favor of ↵Chad Kieffer
specific form IDs that can be styled differently depending on which container they appear. Added gDescription class, dropped gUnderState for semantics. CSS cleanup.
2008-11-29Changed CSS organization, removed form section. Moved generic form CSS up to ↵Chad Kieffer
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-27Get rid of the placeholder "add tags here..." text, and clear the formBharat Mediratta
on submit.
2008-11-27Refactor cloud generation into a helper so that we can call it fromBharat Mediratta
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-27Fix indentation.Bharat Mediratta
2008-11-27We are now submitting the ajax tag add form to the server correctly and ↵Tim Almdal
rehooking the ajaxForm
2008-11-27Trying to add tags, but it doesn't work yet. For some reason that i can't ↵Tim Almdal
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-26Remove the more or less linksTim Almdal
2008-11-25Moving right along on tags. Now the threshold for which tags can be ↵Tim Almdal
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.