summaryrefslogtreecommitdiff
path: root/modules/server_add
AgeCommit message (Collapse)Author
2013-03-11Merge pull request #205 from shadlaws/fix_2053Bharat Mediratta
#2053 - Change all .bind() to .on() for jQuery future-proofing.
2013-03-11#2053 - Change all .bind() to .on() for jQuery future-proofing.shadlaws
- on/off are preferred to bind/unbind, live/die, and delegate/undelegate in jQuery 1.7+ - they're likely on the road toward deprecation, so let's replace them now.
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.
2013-01-31Drop the requirement to have the install() function set the moduleBharat Mediratta
version. It's redundant. Fixes #1985.
2013-01-28#1945 - Extend legal_file helper functions.shadlaws
- Added get_types_by_extension function, which is a merged version of get...types_by_extension functions (similar to get_extensions). - Added optional extension argument to get...extensions functions similar to get...types_by_extension functions. - Added unit tests. Now, every legal_file function has one. - Restructured helper file to include caches. - Added array_unique to get...types (derived from get...types_by_extension, which can be many-to-one). - Edited server_add, uploader, and item model to use new functionality.
2013-01-22gallery.menalto.com -> galleryproject.orgBharat Mediratta
codex.gallery2.org -> codex.galleryproject.org Fixes #1957.
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
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-05-11Improve the way server add deals with wacky directory names. Fixes #1857.Bharat Mediratta
2012-05-07Use legal_file::get_extensions() and variants where appropriate. Fixes #1815.Bharat Mediratta
2012-03-26Fixed Delete buttonMaxim Rubis
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-04-23Oops, fix broken codex urls. For #1698.Bharat Mediratta
2011-04-23Oops, this is the rest of the modules and themes for #1696 and #1698.Bharat Mediratta
2011-04-23Revive server_add.js which I accidentally removed in ↵Bharat Mediratta
80af9f0f17ce5ac10ceefc9d3d0736b3d4c1c2aa as part of #1686.
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
2011-04-02Fix an outdated reference to $entry->file which went away in v4 of theBharat Mediratta
module. Fixes #1669.
2011-01-21Update copyright to 2011.Bharat Mediratta
2011-01-21Fix: photos get added as albums in case only some photos are selected via ↵Joe7
server ad Fixes #1619
2011-01-20Fix a bug introduced in the refactor inBharat Mediratta
65448548637f462ad17c12b149cdb2a169d07026 for #1547. By skipping the staging dirs, we wind up scanning the entire filesystem because the first model is blank so there's no leading path before the /*.
2011-01-19Fix a bug introduced in 65ff2470a505fbc18211093ac131c29b1e820c3e,Bharat Mediratta
clearly I didn't test this enough. Further fix for #1460.
2011-01-15Fix all the head() and admin_head() theme callbacks to return theBharat Mediratta
results of the $theme->css() and $theme->script() calls. This handles the case where combining scripts/css returns HTML instead of putting it in the queue for combination. Fixes #1611.
2011-01-10New albums should take the sort order from their parent. Fixes #1599.Bharat Mediratta
2011-01-09Use eeldivad's fallback code from ↵Bharat Mediratta
http://gallery.menalto.com/node/96806#comment-358404 instead of relying solely on preg_quote. Fixes #1460.
2011-01-09Move the directory queue into the database as well, otherwise if youBharat Mediratta
have too many directories it blows out the task queue and the whole thing falls over. Fixes #1547.
2011-01-09Replace preg_quote with a more targeted regex to fix the problem whereBharat Mediratta
directories get skipped. Fixes #1460, I think.
2010-10-25All modules should be named Xxx_Core for extensibility. Fixes #1458.Bharat Mediratta
2010-08-09"Server Add" -> "Server add"Bharat Mediratta
(Sentence capitalization)
2010-07-31Full pass over all the JSON encoding and JS dialog code. We now abideBharat Mediratta
by the following rules: 1) An initial dialog or panel load can take either HTML or JSON, but the mime type must accurately reflect its payload. 2) dialog form submits can handle a pure HTML response, but the mime type must also be correct. This properly resolves the problem where the reauth code gets a JSON response first from the reauth code, and then an HTML response when you reauth and continue on to a given form -- try it out with Admin > Settings > Advanced. 3) All JSON replies must set the mime type correctly. The json::reply convenience function does this for us. 4) By default, any HTML content sent back in the JSON response should be in the "html" field, no longer the "form" field. The combination of these allows us to stop doing boilerplate code like this in our controllers: // Print our view, JSON encoded json::reply(array("form" => (string) $view)); instead, controllers can just return HTML, eg: // Print our view print $view; That's much more intuitive for developers.
2010-07-31More patches as part of #1225. Change the 'core' modules to use the json::replyTim Almdal
method to set the content type header and encode the response as a json object
2010-07-11Merge branch 'master' into talmdal_devTim Almdal
2010-07-10Cast the status message to a string so that it gets sent down as a string in ↵Bharat Mediratta
the json blob. Fixes ticket #1198.
2010-07-10Accept extension .m4v as video/mp4Romain LE DISEZ
2010-07-06Fix for ticket #1181. Use $.getJSON to retrieve the json contents of the ↵Tim Almdal
dialog. Convert all the controllers that create the data to go into a dialog to return the html as part of a json object.
2010-04-30Add page_title to admin views. Closes #1038.ckieffer
2010-04-04preg_quote() the pattern we use for directory globs to avoid lettingBharat Mediratta
the filename be treated as a regexp. Fixes #1086.
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-02-25Fix typo, thanks cajun100 for reporting!Andy Staudacher
2010-02-22Fix server-add for German and other locales that use comma as decimal separator.Andy Staudacher
2010-01-31Remove debug code.Bharat Mediratta
2010-01-28cast $task->done to bool so that it doesn't show up as "0" to the JS,Bharat Mediratta
which will interpret that as a true value, when it's not.
2010-01-27Convert back to using ORM::factory(..., $id) instead of calling where().Bharat Mediratta
2010-01-23Switch to model based validation.Bharat Mediratta
2010-01-24First pass at converting server add to model based validation.Bharat Mediratta
2010-01-09Fix for ticket #972 and more. In Kohana 2.4, ORM::delete_all ignores any whereTim Almdal
clauses and deletes all the entries in the table unless an array of id's are passed as the parameter. This fix used the Database_builder to specify any where conditions. Thanks psvo for find the first one. :-)