Commit Graph

317 Commits

Author SHA1 Message Date
shadlaws
556d0d40eb Context menus are fixed! This should be fully compatible with older themes
since only gallery.common.js is modified.

Now that I understand the problem and the fix, I'm not sure I can explain why it
*used* to work with older jQuery...
2013-02-18 16:15:49 +01:00
Bharat Mediratta
d632ef3e50 Fix up autocomplete for admin_server_add - found and fixed some bugs
in gallery_autocomplete when "multiple" isn't set.  Fixed some
harmless syntax issues that js2-mode helpfully pointed out.
2013-02-17 00:23:50 -05:00
shadlaws
a8b571cc97 Context menu dialog box problem: better, but still not working.
- removed fake attr settings (possible compatibility issue with newer jQuery)
- replaced with extra class
- fixed formatting
- still doesn't work: addClass works, but hasClass always returns false when function runs again
2013-02-16 12:12:16 +01:00
shadlaws
7c5d9db61c Fixed formatting in gallery.dialog.js (no functional changes). 2013-02-15 19:32:01 +01:00
shadlaws
4dd7b708b2 Dialog sizing, titles, and z-index. This should ensure the small <500px dialogs
are correct, all titles are correctly sized, and the dialog boxes go to
the top for older themes, too.
2013-02-15 19:31:20 +01:00
Bharat Mediratta
16b8b8d16b Merge pull request #141 from shadlaws/jquery_19_dialog_sizing
Dialog centering, sizing, etc. seem to be fixed!
2013-02-14 11:45:43 -08:00
shadlaws
f580488fb5 Fix Cancel link positioning, fix watermark error reply (seems to have already been broken in v3.0.4...) 2013-02-13 09:45:12 +01:00
shadlaws
1ac2c959d0 Dialog centering, sizing, etc. seem to be fixed! Well, *if* they come from a link/menu.
If they come from a context menu, they're still really broken.
2013-02-13 00:31:43 +01:00
shadlaws
6395c518f0 Changing 2 library names back to (less-standardized) original names.
json2.js -> json2-min.js ; jquery.localScroll.js -> jquery.localscroll.js
While this is irrelevant for Wind, changing the filenames back to what we used
to have ensures that we don't break contributed themes.

--HG--
rename : lib/jquery.localScroll.js => lib/jquery.localscroll.js
2013-02-12 23:14:46 +01:00
Bharat Mediratta
6e8a647d0b Merge pull request #137 from shadlaws/jquery_19_success_xhr
Updated success callbacks for gallery.panel.js and gallery.dialog.js
2013-02-12 09:25:21 -08:00
shadlaws
dc5b1a715b Formatting: cleaned up extra lines, whitespaces, converted tabs to spaces, etc. 2013-02-12 17:27:05 +01:00
shadlaws
ec0363fd36 Updated success callbacks for gallery.panel.js and gallery.dialog.js - no longer need to save xhr ahead of success.
Tested and seems to work well, even with watermarks on Chrome (previously an issue).
2013-02-12 17:19:28 +01:00
shadlaws
c8a084d5f2 Updated json.js library
- json.js  2012/10/08
- used non-minified to be consistent with other libraries
- updated filename in page.html.php call
2013-02-12 16:05:25 +01:00
shadlaws
c593645292 Finished jQuery library updates, current for 2013/02/12.
- jquery.js  1.9.1 (2013/02/04)
- jquery.cookie.js  1.3.1 (2013/01/30)
- jquery.scrollTo.js  1.4.5 (2012/12/14)
- jquery.localScroll.js  1.2.8b (2012/09/21)
Note: jquery.jeditable.js and jquery.MultiFile.js still removed, as they are no longer used.
2013-02-12 15:33:09 +01:00
Bharat Mediratta
3b87ed54c2 force the dialog to the top of the page 2013-02-05 11:32:49 -05:00
Bharat Mediratta
518fdf735c No need to do the eval anymore. 2013-02-03 23:03:58 -05:00
Bharat Mediratta
0494244e80 Super first pass:
- jQuery 1.90
- jQuery UI 1.10
- Superfish 1.5.1 (minus all plugins)
- jQuery Form 3.26.0-2013.01.28

Deleted all other jQuery plugins for now.

- Reworked autocomplete to use the latest jQuery code.
- Deleted references to $.browser.msie, no longer supported
- Basic CSS support for autocomplete - lots more work needed there
2013-02-03 18:55:23 -05:00
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