Commit Graph

300 Commits

Author SHA1 Message Date
Bharat Mediratta
0875844784 Update Flowplayer to 3.2.12 along with all associated files. Also
switch over to the byte-range version of pseudostreaming, let's see if
that works better than what we have currently.  Fixes #1899.
2012-07-23 13:38:59 -07:00
Bharat Mediratta
b91d284747 Do a better job of displaying errors to the user on AJAX failures
in dialogs.  Fixes #236.
2012-06-05 22:03:11 -07:00
Bharat Mediratta
713a06f234 Do a better job of escaping filenames when uploading. Fixes #1881. 2012-06-05 20:20:21 -07:00
Bharat Mediratta
a9be0691d9 Create an ajax response framework that inserts <meta> tags to guard
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-19 11:31:25 -07:00
Ian
b07b4759c4 added if (nh < 1) { var nh = 0; }
to start album upper border not as nh = -n
2011-11-05 12:50:19 +01:00
Andy Lindeman
cc8d881973 Add iPad/iPhone support for video playback
* Resolves #1634
2011-04-23 16:20:54 -04:00
Andy Lindeman
100218e3ec Patch jQuery UI to fix drag-and-drop events in IE9
* Fixes #1642
2011-04-22 19:25:23 -04:00
Chad Kieffer
4a9b45c9c3 Created apple-touch-icon and added to wind and admin_wind themes. 2011-04-22 12:37:28 -04:00
Bharat Mediratta
907377835b When we're not auto-fitting the image, pin it to the top of the page.
This way small images on pages with a ton of comments don't get pushed
way down.  Fixes #1626.
2011-03-05 17:05:29 -08:00
Bharat Mediratta
443e49b2ae Revert overeager escaping introduced in
bb35aefffb
in an attempt to resolve #797.

Fixes #1640.
2011-02-24 22:52:32 -08:00
Bharat Mediratta
7eabf6c1c2 Use Math.round() instead of Number() to convert floating point numbers
to integer.  Fixes overflow probelm that causes #1490.  Thanks to
nkinkade for the fix.
2011-01-11 21:21:59 -08:00
Bharat Mediratta
2826b70bec Use CSS not JS to determine the full size of the full size overlay. Fixes #1541. 2011-01-10 14:36:23 -08:00
Bharat Mediratta
dd6da5e233 Add a minified version of json2.js from https://github.com/douglascrockford/JSON-js/blob/master/json2.js
by Douglas Crockford at 8d11dc6950eafc7d01f141ce91d4f585caa29f3b.  Fixes #1351.
2010-12-29 11:59:44 -08:00
Tim Almdal
960db6d7e5 Move the image files into the themes. Leave the favicon and logo in lib/images. 2010-09-20 22:36:34 -07:00
Tim Almdal
8b21123493 When the lib/gallery.common.css was combined, the image urls did not point to the correct location.
So lets fix that up. But first undo the reverts:
93d1a8103e "Revert 'Move the contents of lib/gallery.common.css into themes/wind/css/screen.php and themes/admin_wind/css/screen.php.  Most themers seem to copy the contents into their theme's screen.css anyway.'"
f14290f34f "Revert 'Clean up white space'"
ff8ee5bdfc "Revert 'Add some whitespace.'"
2010-09-19 07:53:39 -07:00
Bharat Mediratta
93d1a8103e Revert "Move the contents of lib/gallery.common.css into themes/wind/css/screen.php and themes/admin_wind/css/screen.php. Most themers seem to copy the contents into their theme's screen.css anyway."
This reverts commit 4251704175.
2010-09-18 17:51:25 -07:00
Tim Almdal
4251704175 Move the contents of lib/gallery.common.css into themes/wind/css/screen.php and themes/admin_wind/css/screen.php. Most themers seem to copy the contents into their theme's screen.css anyway. 2010-09-15 18:20:27 -07:00
Bharat Mediratta
81327641cd Fix two bugs with the context menu:
1) Prevent it from "bouncing" which happens when we queue up a lot of
   open and close events.  Stop any running animations before starting
   new ones.  This fixes #1340.

2) Prevent a bug that's not really visible to the user where we wind
   up re-initializing a context menu over and over which results in us
   binding tons of hover events.  I don't think this causes any serious
   damage, but it's probably not good.
2010-09-11 00:27:47 -07:00
Bharat Mediratta
b35886c0fc Refactor $.fn.gallery_context_menu() to store some variables instead
of using CSS selector lookups for every operation.  I assume (but have
not verified) that this is more efficient.
2010-09-11 00:08:38 -07:00
Bharat Mediratta
6211ed69d7 Vertically realign thumbnails after rotation so that they stay
centered.  Partial fix for #1354.
2010-09-09 21:25:23 -07:00
Bharat Mediratta
32878ebfdc Replace the hook function hack I introduced in
cbba45fffc with a namespaced jQuery
custom event.  This is way more portable.
2010-09-09 21:04:18 -07:00
Bharat Mediratta
c51b6ab38d Fix full size dimensions after rotating an image on the photo view page.
The photo view page caches the dimensions of the full size and then
renders it in Javascript.  But after rotation, those dimensions are no
longer valid.  Create a new function on the items controller that
returns the appropriate dimensions, then add a hook on
$.gallery_replace_image and implement the hook on the photo view page
to have it make an async call to get the new dimensions.

Fixes ticket #1317
2010-09-04 15:54:07 -07:00
Bharat Mediratta
7bee93390d Close any open dialogs before opening a new one. Fixes ticket #1295. 2010-08-25 21:46:23 -07:00
Bharat Mediratta
545c069786 Delete old SWFupload code. We replaced it with uploadify ages ago. 2010-08-24 21:27:34 -07:00
Tim Almdal
42617117c0 Replace overlooked 'form' parameter in json response with 'html'. 2010-08-03 11:10:13 -07:00
Bharat Mediratta
7607e1f932 Full pass over all the JSON encoding and JS dialog code. We now abide
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-31 21:16:17 -07:00
Tim Almdal
a6ceb927e6 Sometimes in dialogs, the form is wrapped in a view to provide additional information. We need to replace the contents of the entire dialog, not just the form, otherwise, there could be text floating around that doesn't make sense. 2010-07-31 15:44:56 -07:00
Tim Almdal
0cca2fdf9b Correct the name of the JSON member that contains the form data. 2010-07-31 15:44:56 -07:00
Tim Almdal
5c0998c4ac Partial fix for #1225. Change the dialog and panel handling to look at the mime type returned to determine the content type. 2010-07-31 15:44:55 -07:00
Bharat Mediratta
189518849c Modify the panel code to expect a JSON data package to mirror what we did in gallery.dialog.js in 9538b3888d 2010-07-20 14:21:40 -07:00
Bharat Mediratta
583950616e Improve the fix for #1176 to use request::is_ajax() instead of tacking
on a query param to urls that appear in dialogs.  This keeps things simpler.
2010-07-16 11:58:13 -07:00
Tim Almdal
155d2b809b Rename g-in-dialog to the naming standard for query parameters and give it something more representative... 'gallery_dialog_request' 2010-07-15 14:54:45 -07:00
Tim Almdal
69dfb51490 Merge branch 'master' into talmdal_dev 2010-07-12 21:50:09 -07:00
ckieffer
b7cc677c3d Indentation fixes. 2010-07-11 12:07:50 -06:00
ckieffer
9c9c0879c2 Indentation fixes. 2010-07-11 11:58:41 -06:00
Tim Almdal
f26d5dbbdf Reset the title in case the dialog contents changed the dialog title. 2010-07-09 11:10:02 -07:00
Tim Almdal
591c5a11a3 Reset the postion option to center when the form data is reloaded, to force the dialog to recenter in case the contents have changed. 2010-07-09 11:09:35 -07:00
Tim Almdal
9538b3888d Fix for ticket #1176. Have the gallery.dialog code add a g-in-dialog parameter to the url to let the controller know its in a dialog. The reauthenticate controller will format the password prompt as a page or a form content. If authentication is successful, then the original controller is called instead of being redirected to. 2010-07-07 08:58:38 -07:00
Tim Almdal
dbf3199e46 Fix for ticket #1181. Use $.getJSON to retrieve the json contents of the 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-07-06 14:12:01 -07:00
Tim Almdal
226d1f7146 Revert "If the admin request originates as a dialog link, don't display the entire page when reauthenticating the administrator. Just put the form in the dialog."
This reverts commit 8493a3d36f.
2010-07-05 08:58:36 -07:00
Tim Almdal
8493a3d36f If the admin request originates as a dialog link, don't display the entire page when reauthenticating the administrator. Just put the form in the dialog. 2010-07-05 08:23:17 -07:00
Bharat Mediratta
c946ad1fcd If we promote the <H1> element to be the title, hide it so we're not showing it twice. 2010-06-25 09:56:29 -07:00
Tim Almdal
3b05db2685 Move the themeroller files to the themes from gallery/lib. These are visual related and make more sense to be in the theme. Both three_nids and browny_wind* have created copies for their visual standard. So this just makes it consistent across the board. 2010-06-23 11:16:56 -07:00
mamouneyya
69fffda87b improve Superfish menus shadow for RTL, and add round corners support for Opera 2010-06-23 23:32:54 +08:00
mamouneyya
bae9546b88 flip the window title and cancel button for RTL in dialogue windows 2010-06-23 23:32:40 +08:00
mamouneyya
bc8b64db0b more fixes for RTL Superfish 2010-06-23 23:32:40 +08:00
mamouneyya
d195e49d9f correct format 2010-06-23 23:32:39 +08:00
mamouneyya
0b7a8e1a69 fix ticket #1051 2010-06-23 23:32:21 +08:00
Bharat Mediratta
9b4d9d1d46 Fix two issues with the "loading" overlay:
1) gallery.common.js was using the wrong class name
2) we need to mark the CSS as !important because it conflicts with
   other background images.  Note that this will replace the existing
   background which may not be desireable.
2010-06-20 16:51:06 -07:00
Bharat Mediratta
fcd39be28b Specify a default margin for all buttons in the common css. Fixes
ticket #1165.
2010-06-20 10:43:25 -07:00