Commit Graph

284 Commits

Author SHA1 Message Date
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
Bharat Mediratta
4a7b41c5a4 Merge branch 'master' of git://github.com/mamouneyya/gallery3
Conflicts:
	lib/gallery.common.css
2010-06-20 10:25:03 -07:00
mamouneyya
c7ce0228de (1) Correct the margin direction for checkboxes in RTL (2) Update the id of adding comment button for RTL (3) Flip the corner radiuses for any buttons set, which solves the issue of flipped corners in the comments admin page. Also, add the CSS3 selector of the round corners so they work in Opera (4) Fix ticket #1052 2010-06-21 01:21:03 +08:00
mamouneyya
6078eb6264 Add '! important' to the round corners properties with values, force them to be shown even with the case the element has two or more of them (e.g. class='ui-corner-left ui-corner-right'.) Don't know if there was a better solution.. 2010-06-18 23:29:37 +03:00
mamouneyya
7f8e2786b3 Mirror the cancel button for RTL 2010-06-18 14:07:38 +03:00
mamouneyya
9173ea8167 Add the CSS3 selector of the round corners so they work in Opera 2010-06-18 14:07:16 +03:00
mamouneyya
d84cdcb8fc (1) Correct the margin direction for checkboxes in RTL (2) Update the id of adding comment button for RTL (3) Flip the corner radiuses for any buttons set, which solves the issue of flipped corners in the comments admin page. Also, add the CSS3 selector of the round corners so they work in Opera (4) Fix ticket #1052 2010-06-18 14:06:41 +03:00
Tim Almdal
bb35aefffb Fix for ticket #797
When load a file is uploaded using a dialog box and the jquery plugin ajaxForm, the ajaxForm plugin uses an hidden iFrame element to send the multi-part
form and this is where the response goes.  The ajaxForm plugin then retrieves the document body and parses the result as a json string. If the file uploads
properly everything is fine, but if it fails Gallery3 return the input form with the the error fields highlighted as part of the json response. As this
response is returned to a hidden iframe, the browser attempts to manipulate it and all hell breaks loose. We lose the trailing brace, we start getting
escaping of form tags. When the ajaxForm plugin retrieves the iFrame body its no longer a valid json frame and the parsing fails and the user sees no
indication that it failed.
2010-06-11 12:36:23 -07:00
ckieffer
b2f7f80efb Updated YUI CSS files to 2.8.1. Closes ticket #1141. Needs to be pushed to vendor. 2010-05-08 07:52:27 -06:00
Andy Staudacher
d849b6be3f Oops, somehow the update to flowplayer 3.1.5 was missing a few files. Here they are... 2010-04-30 16:25:16 -07:00
Andy Staudacher
97ba2d87eb Integrate new flowplayer version (3.1.5) from vendor branch. 2010-04-30 16:21:41 -07:00
Tim Almdal
995994b93a Synchronize the line endings with the vendor branch. 2010-03-13 08:30:08 -08:00
Chad Kieffer
5f985b3e2a Updates to upload CSS to make it themeable and RTL compatible. Use absolute positioning to handle upload button positioning. Remove color definitions to allow jQuery UI theme to set button colors. Consolidate upload dialog CSS to modules/css/gallery.css. Closes #885. 2010-02-28 18:46:43 -07:00
Chad Kieffer
63ec1c5e48 Absolutely position the 'Add comment' button on the left for RTL. Fixes part of the reopened #869. 2010-02-18 19:28:13 -07:00
Chad Kieffer
61c3dcacd1 Fix duplicate checkmark issue in Safari, Opera, elsewhere (ticket #902). This has been a persistent issue. Fix seems to turn of CSS BG on the row, then turn it on for tr.g-success td.g-success {} selector. 2010-02-03 20:13:33 -07:00
Tim Almdal
370faf5f26 Display the error message for the in place edit. Also improve the double click guard. Fixes ticket #1000. 2010-02-02 10:55:22 -08:00
Tim Almdal
519cc249c4 Guard the gallery.in_place_edit::_show method so that if an attempt is made to show the inplace edit form multiple times, the form is only shown once. Fixes ticket #999 2010-02-01 22:32:22 -08:00