summaryrefslogtreecommitdiff
path: root/modules/server_add/views
AgeCommit message (Collapse)Author
2013-03-10#2048 - Remove unneeded jquery.autocomplete.css/js inclusions.shadlaws
- removed autocomplete.css/js calls in server_add, tag, and g2_import. - revised xss_data.txt golden file (line number changes only).
2013-02-26Follow-on from autocomplete updates.shadlaws
(9345dde83e1f092a9309c45282dc21e3fd408875, d632ef3e50252d388c272cacd29e8cc6e4949cec) - gallery module: added loading-small.gif (so all themes have it by default) - gallery module: added css for .ui-autocomplete-loading (copied from .g-loading-small in wind, but without !important so other themes can override it) - gallery module: updated upgrader.html.php to use new image (removes theme dependence) - wind theme: removed outdated css for .ac_loading (not used in v3.0.5, either) - server_add module: removed multiple argument from autocomplete (doesn't work well with it)
2013-02-17Fix up autocomplete for admin_server_add - found and fixed some bugsBharat Mediratta
in gallery_autocomplete when "multiple" isn't set. Fixed some harmless syntax issues that js2-mode helpfully pointed out.
2012-05-19Create an ajax response framework that inserts <meta> tags to guardBharat Mediratta
against UTF-7, and create a $.gallery_autocomplete variant of jQuery's autocomplete that expects the first line to be a <meta> tag and discards it. More complete fix for #1871.
2012-05-19Revert "Prevent server_add autocomplete from being interpreted as UTF-7. ↵Bharat Mediratta
Fixes #1871." This only fixes server_add, we need to fix it more systemically. This reverts commit 88c0363344860ff87bb7fa2d084b8ab190b364cb.
2012-05-16Prevent server_add autocomplete from being interpreted as UTF-7. Fixes #1871.Bharat Mediratta
2012-03-26Fixed Delete buttonMaxim Rubis
2011-04-23Oops, forgot to remove the reference to admin.js. Follow-on for #1686.Bharat Mediratta
2011-04-23Inline admin JS into admin_server_add.html.php. Fixes #1686.Bharat Mediratta
2010-02-25Fix typo, thanks cajun100 for reporting!Andy Staudacher
2009-10-28Normalize capitalization ticket #596Tim Almdal
2009-10-27Breadcrumb updates. Apply g-first and g-active consistently, use ems instead ↵Chad Kieffer
of px for nicer proportions, make font-size the same whether on the page or in a dialog.
2009-10-23Adjust order of items on server_add admin page. Restore autocomplete to the ↵Chad Kieffer
add form. Created a server_add.css file.
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-04Renamed more CSS selectors from gName to g-name.Chad Kieffer
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-09-30Apply gModuleStatus to server add status message.Chad Kieffer
2009-09-18* Changed the close functionality so the page is reloaded when the dialog is ↵Tim Almdal
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-17Refactor the server add javascript into a ui.gallery_server_add widget.Tim Almdal
2009-09-17Reload the album when server_add dialog is closedTim Almdal
2009-08-30Fix double -> single quotes (::js_string returns a double-quotes delimited ↵Andy Staudacher
string)
2009-08-30(mostly harmless) XSS fix in server addAndy Staudacher
2009-08-29Update all code to use helper method html::clean(), html::purify(), ... ↵Andy Staudacher
instead of SafeString directly.
2009-08-29XSS fixesAndy Staudacher
2009-08-29Merge commit 'upstream/master'Andy Staudacher
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-29Refactor all calls of p::clean() to SafeString::of() and p::purify() to ↵Andy Staudacher
SafeString::purify(). Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-08-18Fix for ticket #590. The gallery.dialog.js looks for an element "#dialog ↵Tim Almdal
#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-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-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-23Don't escape & in JS text; it triggers the "Disallowed key charactersBharat Mediratta
in global data." check in the Input library.
2009-07-21Escape bare & symbols so that we use valid entities. Fixes ticket #577.Bharat Mediratta
2009-07-11Get rid of the form from server_add, we're not using it.Bharat Mediratta
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-11Add a "close" button.Bharat Mediratta
2009-07-11Further simplify server_add (and bump it to version 3).Bharat Mediratta
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-10Fix a bug where we were not properly locating the parent album whenBharat Mediratta
adding a new album or photo. Simplify the data structure that we pass down to server_add_tree.html.php so that we just pass a file list and let it do whatever it wants with it.
2009-07-09Add status output to make it clearer what's happening when you add files.Bharat Mediratta
2009-07-09Use p::purify instead of p::cleanBharat Mediratta
2009-07-07Rework server_add. It's smaller and leaner now, storing the list ofBharat Mediratta
files out in a separate model for scalability. Removed the "pause" functionality. - Server_Add_Controller extends Admin_Controller so that we don't have to check for admin every time. - Task completion time now factors in the time it takes to walk the arbitrarily deep trees - Moved checkbox management entirely into JS using jQuery - Simplified the JS considerably
2009-07-02Only enable the [add] button when boxes are checked.Bharat Mediratta
2009-07-02Partial pass of server_add cleanup. It's broken at this stage sinceBharat Mediratta
I've redone the browsing code but I have not implemented the adding code. 1) Rename index() to browse() since index is too generic. 2) Simplify the data that we pass to _dialog and _tree 3) Change _tree to return list items only, so that the outer dialog can be a <ul> for consistency. 4) Simplify the data structures so that we're not tracking checked vs. unchecked status in the PHP code, it's all done in jquery where we can do it with just a line or two of JS 5) use glob() which pretty much entirely replaces _get_children
2009-07-02Eliminate temporary variables by passing the $item into the view andBharat Mediratta
making API calls on the item.
2009-07-02Remove empty <script> block.Bharat Mediratta
2009-06-23Use gMessage for "no paths defined" status message.Chad Kieffer
2009-06-04Only request the server_add js if the user is an adminBharat Mediratta
2009-06-05Rewrite the server_add to have the server format the selection when a branch ↵Tim Almdal
is opened. Sub trees re only retrieved when the branch is opened. Changed the start task processing to fill in any subtrees that are selected, but were never expanded on the client. Added the loading icon. Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-05-31Run all variables that come from user-entered data through p::clean()Bharat Mediratta
2009-04-231) Change the processing so the server_add start task can return done = 1Tim Almdal
if there are no eligible files selected 2) Change the javascript to handle this condition and show a pop up
2009-04-09Provide a translation of the titleon the fatal error dialog pop-upTim Almdal
2009-03-27Put csrf token into Admin_View and Theme_View by default, then use itBharat Mediratta
directly wherever possible instead of access::csrf_token().