refinerycms-photo-gallery 0.0.1.dev
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +26 -0
- data/LICENSE.md +8 -0
- data/README.md +224 -0
- data/app/assets/images/refinery/photo_gallery/admin/chosen-sprite.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/album.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/album_add.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/album_edit.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/cog.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/down.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/folder.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/folder_add.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/folder_edit.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/loading.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/page_copy.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/photo.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/photo_add.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/photo_edit.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/icons/up.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/backgrounds.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/buttons-disabled.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/buttons.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/delete.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/done.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/error.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/throbber.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/transp50.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.ui.plupload/plupload-bw.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.ui.plupload/plupload.png +0 -0
- data/app/assets/images/refinery/photo_gallery/admin/rss-feed.png +0 -0
- data/app/assets/images/refinery/photo_gallery/fancybox/blank.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/fancybox/fancybox_loading.gif +0 -0
- data/app/assets/images/refinery/photo_gallery/fancybox/fancybox_sprite.png +0 -0
- data/app/assets/images/refinery/photo_gallery/fancybox/helpers/fancybox_buttons.png +0 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/jquery.chosen.min.js +10 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/photo_gallery.js +28 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/changelog.txt +218 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/cs.js +14 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/da.js +12 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/de.js +24 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/el.js +14 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/es.js +25 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/et.js +33 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/fa.js +37 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/fi.js +33 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/fr-ca.js +35 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/fr.js +25 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/hr.js +25 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/hu.js +33 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/it.js +24 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ja.js +37 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ko.js +36 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/lv.js +33 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/nl.js +21 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/pl.js +24 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/pt-br.js +35 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ro.js +24 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/ru.js +21 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/sk.js +37 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/sr.js +14 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n/sv.js +12 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/jquery.plupload.queue.js +195 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/jquery.ui.plupload.js +383 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/license.txt +339 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.browserplus.js +1 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.flash.js +226 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.flash.swf +0 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.full.js +2525 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.full.js.default +2525 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.gears.js +1 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.html4.js +1 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.html5.js +765 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.html5.js.default +765 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.js +618 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.silverlight.js +1 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.silverlight.xap +0 -0
- data/app/assets/javascripts/refinery/photo_gallery/admin/plupload/readme.md +46 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/CHANGELOG.md +68 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/README.md +212 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-buttons.js +115 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-media.js +85 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-thumbs.js +157 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/jquery.fancybox.js +1463 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/jquery.fancybox.pack.js +35 -0
- data/app/assets/javascripts/refinery/photo_gallery/fancybox/lib/jquery.mousewheel-3.0.6.pack.js +13 -0
- data/app/assets/stylesheets/refinery/photo_gallery/admin/chosen.css.scss +396 -0
- data/app/assets/stylesheets/refinery/photo_gallery/admin/photo_gallery.css.scss +109 -0
- data/app/assets/stylesheets/refinery/photo_gallery/admin/plupload/jquery.plupload.queue.css.scss +177 -0
- data/app/assets/stylesheets/refinery/photo_gallery/admin/plupload/jquery.ui.plupload.css.scss +147 -0
- data/app/assets/stylesheets/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-buttons.css.scss +85 -0
- data/app/assets/stylesheets/refinery/photo_gallery/fancybox/helpers/jquery.fancybox-thumbs.css +54 -0
- data/app/assets/stylesheets/refinery/photo_gallery/fancybox/jquery.fancybox.css.scss +234 -0
- data/app/controllers/refinery/photo_gallery/admin/albums_controller.rb +23 -0
- data/app/controllers/refinery/photo_gallery/admin/collections_controller.rb +10 -0
- data/app/controllers/refinery/photo_gallery/admin/photos_controller.rb +67 -0
- data/app/controllers/refinery/photo_gallery/albums_controller.rb +21 -0
- data/app/controllers/refinery/photo_gallery/collections_controller.rb +28 -0
- data/app/helpers/refinery/photo_gallery/admin/photos_helper.rb +10 -0
- data/app/helpers/refinery/photo_gallery/albums_helper.rb +11 -0
- data/app/helpers/refinery/photo_gallery/photo_gallery_helper.rb +58 -0
- data/app/middleware/refinery/photo_gallery/admin/flash_session_cookie_middleware.rb +27 -0
- data/app/models/refinery/photo_gallery/album.rb +60 -0
- data/app/models/refinery/photo_gallery/collection.rb +29 -0
- data/app/models/refinery/photo_gallery/collection_album.rb +8 -0
- data/app/models/refinery/photo_gallery/photo.rb +54 -0
- data/app/uploaders/refinery/photo_gallery/admin/file_uploader.rb +121 -0
- data/app/views/refinery/photo_gallery/admin/_submenu.html.erb +44 -0
- data/app/views/refinery/photo_gallery/admin/albums/_album.html.erb +31 -0
- data/app/views/refinery/photo_gallery/admin/albums/_form.html.erb +78 -0
- data/app/views/refinery/photo_gallery/admin/albums/_sortable_list.html.erb +7 -0
- data/app/views/refinery/photo_gallery/admin/albums/edit.html.erb +2 -0
- data/app/views/refinery/photo_gallery/admin/albums/index.html.erb +28 -0
- data/app/views/refinery/photo_gallery/admin/albums/new.html.erb +2 -0
- data/app/views/refinery/photo_gallery/admin/collections/_collection.html.erb +23 -0
- data/app/views/refinery/photo_gallery/admin/collections/_form.html.erb +32 -0
- data/app/views/refinery/photo_gallery/admin/collections/_sortable_list.html.erb +7 -0
- data/app/views/refinery/photo_gallery/admin/collections/edit.html.erb +2 -0
- data/app/views/refinery/photo_gallery/admin/collections/index.html.erb +28 -0
- data/app/views/refinery/photo_gallery/admin/collections/new.html.erb +2 -0
- data/app/views/refinery/photo_gallery/admin/collections/test.html.erb +39 -0
- data/app/views/refinery/photo_gallery/admin/photos/_destroy.js.erb +15 -0
- data/app/views/refinery/photo_gallery/admin/photos/_form.html.erb +7 -0
- data/app/views/refinery/photo_gallery/admin/photos/_form_actions.html.erb +6 -0
- data/app/views/refinery/photo_gallery/admin/photos/_form_fields.html.erb +31 -0
- data/app/views/refinery/photo_gallery/admin/photos/_form_fields_actions.html.erb +15 -0
- data/app/views/refinery/photo_gallery/admin/photos/edit_multiple.html.erb +9 -0
- data/app/views/refinery/photo_gallery/admin/photos/upload.html.erb +87 -0
- data/app/views/refinery/photo_gallery/albums/show.html.erb +26 -0
- data/app/views/refinery/photo_gallery/collections/index.html.erb +9 -0
- data/app/views/refinery/photo_gallery/collections/show.html.erb +19 -0
- data/app/views/refinery/photo_gallery/shared/_layout.html.erb +22 -0
- data/app/views/refinery/photo_gallery/shared/_submenu.html.erb +4 -0
- data/config/initializers/carrierwave.rb +7 -0
- data/config/initializers/form_builder.rb +26 -0
- data/config/initializers/refinery/core.rb +10 -0
- data/config/initializers/s3.rb +13 -0
- data/config/initializers/session_store.rb +10 -0
- data/config/locales/en.yml +95 -0
- data/config/locales/sk.yml +94 -0
- data/config/routes.rb +37 -0
- data/db/migrate/20120804063842_create_albums.rb +18 -0
- data/db/migrate/20120805131321_create_collections.rb +14 -0
- data/db/migrate/20120805131547_create_collection_albums.rb +12 -0
- data/db/migrate/20120805165238_create_photos.rb +19 -0
- data/db/migrate/20120805222125_add_indexes.rb +24 -0
- data/db/seeds.rb +21 -0
- data/lib/generators/refinery/photo_gallery_generator.rb +25 -0
- data/lib/generators/refinery/templates/config/initializers/refinery/photo_gallery.rb.erb +40 -0
- data/lib/refinery/photo_gallery.rb +30 -0
- data/lib/refinery/photo_gallery/configuration.rb +33 -0
- data/lib/refinery/photo_gallery/engine.rb +33 -0
- data/lib/refinery/photo_gallery/version.rb +17 -0
- data/lib/refinerycms-photo-gallery.rb +1 -0
- data/refinerycms-balder-photo-gallery.gemspec +30 -0
- data/screenshots/01_collections#index.png +0 -0
- data/screenshots/02_albums#create.png +0 -0
- data/screenshots/03_photos#upload.png +0 -0
- data/screenshots/04_photos#upload- chooser.png +0 -0
- data/screenshots/05_photo#upoad-queue.png +0 -0
- data/screenshots/06_photos#upload-uploading.png +0 -0
- data/screenshots/07_photos#upload-uploading_2.png +0 -0
- data/screenshots/08_photos#edit_multiple.png +0 -0
- data/screenshots/09_albums#index.png +0 -0
- data/screenshots/10_albums_EXIF_reading.png +0 -0
- data/screenshots/11_frontend_show.png +0 -0
- data/screenshots/12_show_photo_using_fancybox.png +0 -0
- metadata +323 -0
data/Gemfile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
source 'http://rubygems.org'
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
gem 'refinerycms', '~> 2.0.3'
|
6
|
+
|
7
|
+
#loading from gemspec
|
8
|
+
|
9
|
+
# -- Cloud storage
|
10
|
+
# AWS S3 support. Can be disabled if using local file system instead of cloud storage.
|
11
|
+
#gem 'fog'
|
12
|
+
|
13
|
+
# -- Photo resizing
|
14
|
+
# MiniMagick
|
15
|
+
#gem "mini_magick"
|
16
|
+
|
17
|
+
# RMagick:
|
18
|
+
#gem "rmagick", :require => 'RMagick'
|
19
|
+
|
20
|
+
# FreeImage:
|
21
|
+
#gem "RubyInline"
|
22
|
+
#gem "image_science", :git => 'git://github.com/perezd/image_science.git'
|
23
|
+
|
24
|
+
# -- EXIF
|
25
|
+
# Mini exif tool. Can be disabled. Remove exif_read and exif_write filters in photo model
|
26
|
+
#gem "mini_exiftool"
|
data/LICENSE.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
MIT License
|
2
|
+
Copyright (c) 2012 Espen Antonsen, Martin Markech
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
5
|
+
|
6
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
7
|
+
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,224 @@
|
|
1
|
+
# Refinery CMS Photo Gallery
|
2
|
+
|
3
|
+
__Photo gallery engine for Refinery CMS.__
|
4
|
+
|
5
|
+
## Requirements
|
6
|
+
|
7
|
+
This version of refinerycms-photo-gallery supports Rails 3.2.x and Refinery CMS ~> 2.0.3.
|
8
|
+
|
9
|
+
Client side image resizing with Plupload is possible on Firefox 3.5+ (with fixed quality) and Chrome.
|
10
|
+
Safari doesn't support direct data access to the selected files. Opera 12.00 + supports drag&drop and also client side image resizing.
|
11
|
+
|
12
|
+
|
13
|
+
## Features
|
14
|
+
|
15
|
+
* Multiple photo uploading with [Plupload](http://www.plupload.com/) 1.5.4
|
16
|
+
* Support for multiple runtimes (because of bug now works only HTML5): HTML5, Flash, Gears, Silverlight, HTML4
|
17
|
+
* Client side photo resizing to do faster uploading on slow connections
|
18
|
+
* Server side resizing with Carrierwave
|
19
|
+
* Grouping albums to collections. Album can be placed in one or more collections.
|
20
|
+
* Ajax photo edit during uploading
|
21
|
+
* Reading EXIF records from file - GPS latitude/longitude, photo title, photo description (In Linux you can put EXIF data using [digiKam](www.digikam.org/) )
|
22
|
+
* Multiple photo editing at once
|
23
|
+
* Fully configurable, fully translatable, searchable
|
24
|
+
* Using [Fancybox](http://fancyapps.com/fancybox/) 2.0.6 for frontend image slideshow. Read Fancybox license before you
|
25
|
+
use it on profit websites.
|
26
|
+
|
27
|
+
## Screenshots
|
28
|
+
|
29
|
+
All screenshots are in folder screenshots
|
30
|
+
|
31
|
+
![Photo uploading](https://raw.github.com/Matho/refinerycms-photo-gallery/master/screenshots/07_photos%23upload-uploading_2.png)
|
32
|
+
![Frontend album](https://raw.github.com/Matho/refinerycms-photo-gallery/master/screenshots/11_frontend_show.png)
|
33
|
+
![Frontend album](https://raw.github.com/Matho/refinerycms-photo-gallery/master/screenshots/12_show_photo_using_fancybox.png)
|
34
|
+
|
35
|
+
|
36
|
+
## Demo
|
37
|
+
|
38
|
+
TODO
|
39
|
+
|
40
|
+
## Options
|
41
|
+
|
42
|
+
* choose runtimes
|
43
|
+
* set max file size
|
44
|
+
* on/off client side resizing
|
45
|
+
* set plupload locale
|
46
|
+
* file extensions white list
|
47
|
+
* delete original files after resizing to save disk space
|
48
|
+
* set dimmensions of photo versions without need to override uploader
|
49
|
+
|
50
|
+
|
51
|
+
## Language
|
52
|
+
|
53
|
+
Gem is fully translated to slovak and english. Plupload is translated to 24 languages. You can add your own to
|
54
|
+
photo_gallery/app/assets/javascripts/refinery/photo_gallery/admin/plupload/i18n and enable it in config.plupload_locale
|
55
|
+
|
56
|
+
|
57
|
+
## Working status
|
58
|
+
|
59
|
+
This is development snapshot. It is not suitable to production now, I'm going to fix bug list and todo list and then I will create stable branch/version.
|
60
|
+
But gem works, so if you want, feel free to try it and contribute :).
|
61
|
+
|
62
|
+
## Installation
|
63
|
+
|
64
|
+
Make sure, you [have installed ImageMagick](http://www.imagemagick.org/script/install-source.php#unix) and ImageMagick dev.
|
65
|
+
On Ubuntu 12.04 you can install dev suite with commands:
|
66
|
+
|
67
|
+
```ruby
|
68
|
+
sudo apt-get install libmagickcore-dev libmagickwand-dev
|
69
|
+
```
|
70
|
+
|
71
|
+
Then you need to install command-line Exiftool application.
|
72
|
+
Instructions for installation you can find under [www.sno.phy.queensu.ca/~phil/exiftool/install.html](www.sno.phy.queensu.ca/~phil/exiftool/install.html).
|
73
|
+
|
74
|
+
|
75
|
+
Open up your ``Gemfile`` and add at the bottom this line:
|
76
|
+
|
77
|
+
```ruby
|
78
|
+
gem 'refinerycms-photo-gallery', '~> 0.0.1.dev', :git => 'git://github.com/Matho/refinerycms-photo-gallery.git'
|
79
|
+
```
|
80
|
+
|
81
|
+
Now, run
|
82
|
+
|
83
|
+
```ruby
|
84
|
+
bundle install
|
85
|
+
```
|
86
|
+
|
87
|
+
Next, to install the photo gallery plugin run:
|
88
|
+
|
89
|
+
```ruby
|
90
|
+
rails g refinery:photo_gallery
|
91
|
+
```
|
92
|
+
|
93
|
+
Run database migrations:
|
94
|
+
|
95
|
+
```ruby
|
96
|
+
rake db:migrate
|
97
|
+
```
|
98
|
+
|
99
|
+
Seed your database:
|
100
|
+
|
101
|
+
```ruby
|
102
|
+
rake db:seed
|
103
|
+
```
|
104
|
+
|
105
|
+
You can configure gem in ``your_app_name/config/initializers/refinery/photo_gallery.rb``
|
106
|
+
|
107
|
+
Check, if you have ``jquery.js`` included in your backend.
|
108
|
+
|
109
|
+
If you want to use Fancybox in frontend, copy ``photo_gallery/app/assets/images/refinery/photo_gallery/fancybox``, ``photo_gallery/app/assets/javascripts/refinery/photo_gallery/fancybox``, ``photo_gallery/app/assets/refinery/photo_gallery/stylesheets/fancybox`` to your
|
110
|
+
refinery cms assets directory.
|
111
|
+
|
112
|
+
Then you need to add fancybox js files to your js manifest file in ``your_app_name/app/javascripts/application.js``:
|
113
|
+
|
114
|
+
```ruby
|
115
|
+
//= require fancybox/jquery.fancybox.pack
|
116
|
+
//= require fancybox/lib/jquery.mousewheel-3.0.6.pack
|
117
|
+
//= require fancybox/helpers/jquery.fancybox-buttons
|
118
|
+
```
|
119
|
+
|
120
|
+
And fancybox css files in ``your_app_name/app/stylesheets/application.css``:
|
121
|
+
|
122
|
+
```ruby
|
123
|
+
*= require jquery-ui-1.8.21.custom
|
124
|
+
*= require fancybox/jquery.fancybox
|
125
|
+
*= require fancybox/helpers/jquery.fancybox-buttons
|
126
|
+
```
|
127
|
+
|
128
|
+
And initialize Fancybox in your_app_name/app/views/refinery/_javascripts.html.erb. If you don't have this file
|
129
|
+
in your app, override it using rake refinery:override command and add this line to it:
|
130
|
+
|
131
|
+
```javascript
|
132
|
+
<script type="text/javascript">
|
133
|
+
$(document).ready(function() {
|
134
|
+
$(".fancybox").fancybox({
|
135
|
+
prevEffect : 'none',
|
136
|
+
nextEffect : 'none',
|
137
|
+
beforeShow : function(){
|
138
|
+
this.title = $(this.element).attr('data-title');
|
139
|
+
},
|
140
|
+
helpers : {
|
141
|
+
title : { type : 'outside' },
|
142
|
+
buttons : {},
|
143
|
+
overlay : {
|
144
|
+
opacity: 0.8,
|
145
|
+
css : {
|
146
|
+
'background-color' : '#000'
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
);
|
153
|
+
});
|
154
|
+
</script>
|
155
|
+
```
|
156
|
+
|
157
|
+
Before production, don't forget to precompile assets by:
|
158
|
+
|
159
|
+
```ruby
|
160
|
+
rake assets:precompile
|
161
|
+
```
|
162
|
+
## Uninstall
|
163
|
+
|
164
|
+
```ruby
|
165
|
+
rails destroy refinery:photo_gallery
|
166
|
+
```
|
167
|
+
From your app db/migrate dir, remove migrations from
|
168
|
+
|
169
|
+
``20120805130459_create_collections.refinery_photo_gallery.rb``
|
170
|
+
|
171
|
+
to
|
172
|
+
|
173
|
+
``20120805130463_add_indexes.refinery_photo_gallery.rb``
|
174
|
+
|
175
|
+
Remove database tables. Run multiple times to remove all photo gallery tables:
|
176
|
+
|
177
|
+
```ruby
|
178
|
+
rake db:rollback
|
179
|
+
```
|
180
|
+
Remove fancybox assets folders, which you copied to you app assets and also remove them from your js/css manifests.
|
181
|
+
|
182
|
+
Remove fancybox init javascript from _javascripts.html.erb file
|
183
|
+
|
184
|
+
Remove gem from Gemfile
|
185
|
+
|
186
|
+
## Todo list
|
187
|
+
|
188
|
+
* fix support for refinerycms-search gem in backend/frontend
|
189
|
+
* add support for amazon S3 storage
|
190
|
+
* create app tests
|
191
|
+
* repair problems with Flash runtime and test gears, silverlight and HTML4 runtime
|
192
|
+
* show live links in admin
|
193
|
+
* allow to check which photo is photo album preview
|
194
|
+
* set albums public/not public.
|
195
|
+
* add checkboxes to delete multiple/all photos in album
|
196
|
+
* stop uploading
|
197
|
+
* travis, codeclimate
|
198
|
+
* push to rubygem
|
199
|
+
|
200
|
+
|
201
|
+
## Known bugs
|
202
|
+
|
203
|
+
* Only html5 runtime is now supported
|
204
|
+
* Files with spaces in file names are rejected if you upload them using drag&drop
|
205
|
+
* After collection is created, you are redirected to albums#index instead of collection#index
|
206
|
+
* Due to Opera bug I turn off Plupload client side mime type validation. It is able to choose files with non valid
|
207
|
+
file extensions to upload queue. ( But server side validation reject these files.).
|
208
|
+
|
209
|
+
## Road map ?
|
210
|
+
|
211
|
+
* album/photo tags using acts_as_taggable
|
212
|
+
* show photo location on google maps
|
213
|
+
* caching ?
|
214
|
+
* GPS editing in degrees,minute,seconds format
|
215
|
+
* album grouping by year (configurable)
|
216
|
+
|
217
|
+
## Testing
|
218
|
+
|
219
|
+
TODO
|
220
|
+
|
221
|
+
## License
|
222
|
+
|
223
|
+
Refinery CMS Photo Gallery engine is released under the MIT license. Created by Martin Markech, inspired by
|
224
|
+
Espen Antonsen's [Balder photo gallery](http://balderapp.com/)
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/backgrounds.gif
ADDED
Binary file
|
Binary file
|
data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/buttons.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/throbber.gif
ADDED
Binary file
|
data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.plupload.queue/transp50.png
ADDED
Binary file
|
data/app/assets/images/refinery/photo_gallery/admin/plupload/jquery.ui.plupload/plupload-bw.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,10 @@
|
|
1
|
+
// Chosen, a Select Box Enhancer for jQuery and Protoype
|
2
|
+
// by Patrick Filler for Harvest, http://getharvest.com
|
3
|
+
//
|
4
|
+
// Version 0.9.8
|
5
|
+
// Full source at https://github.com/harvesthq/chosen
|
6
|
+
// Copyright (c) 2011 Harvest http://getharvest.com
|
7
|
+
|
8
|
+
// MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
9
|
+
// This file is generated by `cake build`, do not edit it by hand.
|
10
|
+
((function(){var a;a=function(){function a(){this.options_index=0,this.parsed=[]}return a.prototype.add_node=function(a){return a.nodeName==="OPTGROUP"?this.add_group(a):this.add_option(a)},a.prototype.add_group=function(a){var b,c,d,e,f,g;b=this.parsed.length,this.parsed.push({array_index:b,group:!0,label:a.label,children:0,disabled:a.disabled}),f=a.childNodes,g=[];for(d=0,e=f.length;d<e;d++)c=f[d],g.push(this.add_option(c,b,a.disabled));return g},a.prototype.add_option=function(a,b,c){if(a.nodeName==="OPTION")return a.text!==""?(b!=null&&(this.parsed[b].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:a.value,text:a.text,html:a.innerHTML,selected:a.selected,disabled:c===!0?c:a.disabled,group_array_index:b,classes:a.className,style:a.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},a}(),a.select_to_array=function(b){var c,d,e,f,g;d=new a,g=b.childNodes;for(e=0,f=g.length;e<f;e++)c=g[e],d.add_node(c);return d.parsed},this.SelectParser=a})).call(this),function(){var a,b;b=this,a=function(){function a(a,b){this.form_field=a,this.options=b!=null?b:{},this.set_default_values(),this.is_multiple=this.form_field.multiple,this.set_default_text(),this.setup(),this.set_up_html(),this.register_observers(),this.finish_setup()}return a.prototype.set_default_values=function(){var a=this;return this.click_test_action=function(b){return a.test_active_click(b)},this.activate_action=function(b){return a.activate_field(b)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.result_single_selected=null,this.allow_single_deselect=this.options.allow_single_deselect!=null&&this.form_field.options[0]!=null&&this.form_field.options[0].text===""?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.search_contains=this.options.search_contains||!1,this.choices=0,this.single_backstroke_delete=this.options.single_backstroke_delete||!1,this.max_selected_options=this.options.max_selected_options||Infinity},a.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||"Select Some Options":this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||"Select an Option",this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||"No results match"},a.prototype.mouse_enter=function(){return this.mouse_on_container=!0},a.prototype.mouse_leave=function(){return this.mouse_on_container=!1},a.prototype.input_focus=function(a){var b=this;if(!this.active_field)return setTimeout(function(){return b.container_mousedown()},50)},a.prototype.input_blur=function(a){var b=this;if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(){return b.blur_test()},100)},a.prototype.result_add_option=function(a){var b,c;return a.disabled?"":(a.dom_id=this.container_id+"_o_"+a.array_index,b=a.selected&&this.is_multiple?[]:["active-result"],a.selected&&b.push("result-selected"),a.group_array_index!=null&&b.push("group-option"),a.classes!==""&&b.push(a.classes),c=a.style.cssText!==""?' style="'+a.style+'"':"",'<li id="'+a.dom_id+'" class="'+b.join(" ")+'"'+c+">"+a.html+"</li>")},a.prototype.results_update_field=function(){return this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.result_single_selected=null,this.results_build()},a.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},a.prototype.results_search=function(a){return this.results_showing?this.winnow_results():this.results_show()},a.prototype.keyup_checker=function(a){var b,c;b=(c=a.which)!=null?c:a.keyCode,this.search_field_scale();switch(b){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:a.preventDefault();if(this.results_showing)return this.result_select(a);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},a.prototype.generate_field_id=function(){var a;return a=this.generate_random_id(),this.form_field.id=a,a},a.prototype.generate_random_char=function(){var a,b,c;return a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",c=Math.floor(Math.random()*a.length),b=a.substring(c,c+1)},a}(),b.AbstractChosen=a}.call(this),function(){var a,b,c,d,e=Object.prototype.hasOwnProperty,f=function(a,b){function d(){this.constructor=a}for(var c in b)e.call(b,c)&&(a[c]=b[c]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};d=this,a=jQuery,a.fn.extend({chosen:function(c){return!a.browser.msie||a.browser.version!=="6.0"&&a.browser.version!=="7.0"?this.each(function(d){var e;e=a(this);if(!e.hasClass("chzn-done"))return e.data("chosen",new b(this,c))}):this}}),b=function(b){function e(){e.__super__.constructor.apply(this,arguments)}return f(e,b),e.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_value=this.form_field_jq.val(),this.is_rtl=this.form_field_jq.hasClass("chzn-rtl")},e.prototype.finish_setup=function(){return this.form_field_jq.addClass("chzn-done")},e.prototype.set_up_html=function(){var b,d,e,f;return this.container_id=this.form_field.id.length?this.form_field.id.replace(/[^\w]/g,"_"):this.generate_field_id(),this.container_id+="_chzn",this.f_width=this.form_field_jq.outerWidth(),b=a("<div />",{id:this.container_id,"class":"chzn-container"+(this.is_rtl?" chzn-rtl":""),style:"width: "+this.f_width+"px;"}),this.is_multiple?b.html('<ul class="chzn-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chzn-drop" style="left:-9000px;"><ul class="chzn-results"></ul></div>'):b.html('<a href="javascript:void(0)" class="chzn-single chzn-default"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chzn-drop" style="left:-9000px;"><div class="chzn-search"><input type="text" autocomplete="off" /></div><ul class="chzn-results"></ul></div>'),this.form_field_jq.hide().after(b),this.container=a("#"+this.container_id),this.container.addClass("chzn-container-"+(this.is_multiple?"multi":"single")),this.dropdown=this.container.find("div.chzn-drop").first(),d=this.container.height(),e=this.f_width-c(this.dropdown),this.dropdown.css({width:e+"px",top:d+"px"}),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chzn-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chzn-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chzn-search").first(),this.selected_item=this.container.find(".chzn-single").first(),f=e-c(this.search_container)-c(this.search_field),this.search_field.css({width:f+"px"})),this.results_build(),this.set_tab_index(),this.form_field_jq.trigger("liszt:ready",{chosen:this})},e.prototype.register_observers=function(){var a=this;return this.container.mousedown(function(b){return a.container_mousedown(b)}),this.container.mouseup(function(b){return a.container_mouseup(b)}),this.container.mouseenter(function(b){return a.mouse_enter(b)}),this.container.mouseleave(function(b){return a.mouse_leave(b)}),this.search_results.mouseup(function(b){return a.search_results_mouseup(b)}),this.search_results.mouseover(function(b){return a.search_results_mouseover(b)}),this.search_results.mouseout(function(b){return a.search_results_mouseout(b)}),this.form_field_jq.bind("liszt:updated",function(b){return a.results_update_field(b)}),this.search_field.blur(function(b){return a.input_blur(b)}),this.search_field.keyup(function(b){return a.keyup_checker(b)}),this.search_field.keydown(function(b){return a.keydown_checker(b)}),this.is_multiple?(this.search_choices.click(function(b){return a.choices_click(b)}),this.search_field.focus(function(b){return a.input_focus(b)})):this.container.click(function(a){return a.preventDefault()})},e.prototype.search_field_disabled=function(){this.is_disabled=this.form_field_jq[0].disabled;if(this.is_disabled)return this.container.addClass("chzn-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus",this.activate_action),this.close_field();this.container.removeClass("chzn-disabled"),this.search_field[0].disabled=!1;if(!this.is_multiple)return this.selected_item.bind("focus",this.activate_action)},e.prototype.container_mousedown=function(b){var c;if(!this.is_disabled)return c=b!=null?a(b.target).hasClass("search-choice-close"):!1,b&&b.type==="mousedown"&&!this.results_showing&&b.stopPropagation(),!this.pending_destroy_click&&!c?(this.active_field?!this.is_multiple&&b&&(a(b.target)[0]===this.selected_item[0]||a(b.target).parents("a.chzn-single").length)&&(b.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(document).click(this.click_test_action),this.results_show()),this.activate_field()):this.pending_destroy_click=!1},e.prototype.container_mouseup=function(a){if(a.target.nodeName==="ABBR"&&!this.is_disabled)return this.results_reset(a)},e.prototype.blur_test=function(a){if(!this.active_field&&this.container.hasClass("chzn-container-active"))return this.close_field()},e.prototype.close_field=function(){return a(document).unbind("click",this.click_test_action),this.is_multiple||(this.selected_item.attr("tabindex",this.search_field.attr("tabindex")),this.search_field.attr("tabindex",-1)),this.active_field=!1,this.results_hide(),this.container.removeClass("chzn-container-active"),this.winnow_results_clear(),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},e.prototype.activate_field=function(){return!this.is_multiple&&!this.active_field&&(this.search_field.attr("tabindex",this.selected_item.attr("tabindex")),this.selected_item.attr("tabindex",-1)),this.container.addClass("chzn-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},e.prototype.test_active_click=function(b){return a(b.target).parents("#"+this.container_id).length?this.active_field=!0:this.close_field()},e.prototype.results_build=function(){var a,b,c,e,f;this.parsing=!0,this.results_data=d.SelectParser.select_to_array(this.form_field),this.is_multiple&&this.choices>0?(this.search_choices.find("li.search-choice").remove(),this.choices=0):this.is_multiple||(this.selected_item.addClass("chzn-default").find("span").text(this.default_text),this.form_field.options.length<=this.disable_search_threshold?this.container.addClass("chzn-container-single-nosearch"):this.container.removeClass("chzn-container-single-nosearch")),a="",f=this.results_data;for(c=0,e=f.length;c<e;c++)b=f[c],b.group?a+=this.result_add_group(b):b.empty||(a+=this.result_add_option(b),b.selected&&this.is_multiple?this.choice_build(b):b.selected&&!this.is_multiple&&(this.selected_item.removeClass("chzn-default").find("span").text(b.text),this.allow_single_deselect&&this.single_deselect_control_build()));return this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.search_results.html(a),this.parsing=!1},e.prototype.result_add_group=function(b){return b.disabled?"":(b.dom_id=this.container_id+"_g_"+b.array_index,'<li id="'+b.dom_id+'" class="group-result">'+a("<div />").text(b.label).html()+"</li>")},e.prototype.result_do_highlight=function(a){var b,c,d,e,f;if(a.length){this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),d=parseInt(this.search_results.css("maxHeight"),10),f=this.search_results.scrollTop(),e=d+f,c=this.result_highlight.position().top+this.search_results.scrollTop(),b=c+this.result_highlight.outerHeight();if(b>=e)return this.search_results.scrollTop(b-d>0?b-d:0);if(c<f)return this.search_results.scrollTop(c)}},e.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},e.prototype.results_show=function(){var a;if(!this.is_multiple)this.selected_item.addClass("chzn-single-with-drop"),this.result_single_selected&&this.result_do_highlight(this.result_single_selected);else if(this.max_selected_options<=this.choices)return this.form_field_jq.trigger("liszt:maxselected",{chosen:this}),!1;return a=this.is_multiple?this.container.height():this.container.height()-1,this.form_field_jq.trigger("liszt:showing_dropdown",{chosen:this}),this.dropdown.css({top:a+"px",left:0}),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results()},e.prototype.results_hide=function(){return this.is_multiple||this.selected_item.removeClass("chzn-single-with-drop"),this.result_clear_highlight(),this.form_field_jq.trigger("liszt:hiding_dropdown",{chosen:this}),this.dropdown.css({left:"-9000px"}),this.results_showing=!1},e.prototype.set_tab_index=function(a){var b;if(this.form_field_jq.attr("tabindex"))return b=this.form_field_jq.attr("tabindex"),this.form_field_jq.attr("tabindex",-1),this.is_multiple?this.search_field.attr("tabindex",b):(this.selected_item.attr("tabindex",b),this.search_field.attr("tabindex",-1))},e.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},e.prototype.search_results_mouseup=function(b){var c;c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first();if(c.length)return this.result_highlight=c,this.result_select(b)},e.prototype.search_results_mouseover=function(b){var c;c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first();if(c)return this.result_do_highlight(c)},e.prototype.search_results_mouseout=function(b){if(a(b.target).hasClass("active-result"))return this.result_clear_highlight()},e.prototype.choices_click=function(b){b.preventDefault();if(this.active_field&&!a(b.target).hasClass("search-choice")&&!this.results_showing)return this.results_show()},e.prototype.choice_build=function(b){var c,d,e=this;return this.is_multiple&&this.max_selected_options<=this.choices?(this.form_field_jq.trigger("liszt:maxselected",{chosen:this}),!1):(c=this.container_id+"_c_"+b.array_index,this.choices+=1,this.search_container.before('<li class="search-choice" id="'+c+'"><span>'+b.html+'</span><a href="javascript:void(0)" class="search-choice-close" rel="'+b.array_index+'"></a></li>'),d=a("#"+c).find("a").first(),d.click(function(a){return e.choice_destroy_link_click(a)}))},e.prototype.choice_destroy_link_click=function(b){return b.preventDefault(),this.is_disabled?b.stopPropagation:(this.pending_destroy_click=!0,this.choice_destroy(a(b.target)))},e.prototype.choice_destroy=function(a){return this.choices-=1,this.show_search_field_default(),this.is_multiple&&this.choices>0&&this.search_field.val().length<1&&this.results_hide(),this.result_deselect(a.attr("rel")),a.parents("li").first().remove()},e.prototype.results_reset=function(){this.form_field.options[0].selected=!0,this.selected_item.find("span").text(this.default_text),this.is_multiple||this.selected_item.addClass("chzn-default"),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change");if(this.active_field)return this.results_hide()},e.prototype.results_reset_cleanup=function(){return this.selected_item.find("abbr").remove()},e.prototype.result_select=function(a){var b,c,d,e;if(this.result_highlight)return b=this.result_highlight,c=b.attr("id"),this.result_clear_highlight(),this.is_multiple?this.result_deactivate(b):(this.search_results.find(".result-selected").removeClass("result-selected"),this.result_single_selected=b,this.selected_item.removeClass("chzn-default")),b.addClass("result-selected"),e=c.substr(c.lastIndexOf("_")+1),d=this.results_data[e],d.selected=!0,this.form_field.options[d.options_index].selected=!0,this.is_multiple?this.choice_build(d):(this.selected_item.find("span").first().text(d.text),this.allow_single_deselect&&this.single_deselect_control_build()),(!a.metaKey||!this.is_multiple)&&this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field_jq.val()!==this.current_value)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[d.options_index].value}),this.current_value=this.form_field_jq.val(),this.search_field_scale()},e.prototype.result_activate=function(a){return a.addClass("active-result")},e.prototype.result_deactivate=function(a){return a.removeClass("active-result")},e.prototype.result_deselect=function(b){var c,d;return d=this.results_data[b],d.selected=!1,this.form_field.options[d.options_index].selected=!1,c=a("#"+this.container_id+"_o_"+b),c.removeClass("result-selected").addClass("active-result").show(),this.result_clear_highlight(),this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[d.options_index].value}),this.search_field_scale()},e.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect&&this.selected_item.find("abbr").length<1)return this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>')},e.prototype.winnow_results=function(){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;this.no_results_clear(),j=0,k=this.search_field.val()===this.default_text?"":a("<div/>").text(a.trim(this.search_field.val())).html(),g=this.search_contains?"":"^",f=new RegExp(g+k.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),n=new RegExp(k.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),s=this.results_data;for(o=0,q=s.length;o<q;o++){c=s[o];if(!c.disabled&&!c.empty)if(c.group)a("#"+c.dom_id).css("display","none");else if(!this.is_multiple||!c.selected){b=!1,i=c.dom_id,h=a("#"+i);if(f.test(c.html))b=!0,j+=1;else if(c.html.indexOf(" ")>=0||c.html.indexOf("[")===0){e=c.html.replace(/\[|\]/g,"").split(" ");if(e.length)for(p=0,r=e.length;p<r;p++)d=e[p],f.test(d)&&(b=!0,j+=1)}b?(k.length?(l=c.html.search(n),m=c.html.substr(0,l+k.length)+"</em>"+c.html.substr(l+k.length),m=m.substr(0,l)+"<em>"+m.substr(l)):m=c.html,h.html(m),this.result_activate(h),c.group_array_index!=null&&a("#"+this.results_data[c.group_array_index].dom_id).css("display","list-item")):(this.result_highlight&&i===this.result_highlight.attr("id")&&this.result_clear_highlight(),this.result_deactivate(h))}}return j<1&&k.length?this.no_results(k):this.winnow_results_set_highlight()},e.prototype.winnow_results_clear=function(){var b,c,d,e,f;this.search_field.val(""),c=this.search_results.find("li"),f=[];for(d=0,e=c.length;d<e;d++)b=c[d],b=a(b),b.hasClass("group-result")?f.push(b.css("display","auto")):!this.is_multiple||!b.hasClass("result-selected")?f.push(this.result_activate(b)):f.push(void 0);return f},e.prototype.winnow_results_set_highlight=function(){var a,b;if(!this.result_highlight){b=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=b.length?b.first():this.search_results.find(".active-result").first();if(a!=null)return this.result_do_highlight(a)}},e.prototype.no_results=function(b){var c;return c=a('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),c.find("span").first().html(b),this.search_results.append(c)},e.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},e.prototype.keydown_arrow=function(){var b,c;this.result_highlight?this.results_showing&&(c=this.result_highlight.nextAll("li.active-result").first(),c&&this.result_do_highlight(c)):(b=this.search_results.find("li.active-result").first(),b&&this.result_do_highlight(a(b)));if(!this.results_showing)return this.results_show()},e.prototype.keyup_arrow=function(){var a;if(!this.results_showing&&!this.is_multiple)return this.results_show();if(this.result_highlight)return a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices>0&&this.results_hide(),this.result_clear_highlight())},e.prototype.keydown_backstroke=function(){return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(this.pending_backstroke=this.search_container.siblings("li.search-choice").last(),this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus"))},e.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},e.prototype.keydown_checker=function(a){var b,c;b=(c=a.which)!=null?c:a.keyCode,this.search_field_scale(),b!==8&&this.pending_backstroke&&this.clear_backstroke();switch(b){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(a),this.mouse_on_container=!1;break;case 13:a.preventDefault();break;case 38:a.preventDefault(),this.keyup_arrow();break;case 40:this.keydown_arrow()}},e.prototype.search_field_scale=function(){var b,c,d,e,f,g,h,i,j;if(this.is_multiple){d=0,h=0,f="position:absolute; left: -1000px; top: -1000px; display:none;",g=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"];for(i=0,j=g.length;i<j;i++)e=g[i],f+=e+":"+this.search_field.css(e)+";";return c=a("<div />",{style:f}),c.text(this.search_field.val()),a("body").append(c),h=c.width()+25,c.remove(),h>this.f_width-10&&(h=this.f_width-10),this.search_field.css({width:h+"px"}),b=this.container.height(),this.dropdown.css({top:b+"px"})}},e.prototype.generate_random_id=function(){var b;b="sel"+this.generate_random_char()+this.generate_random_char()+this.generate_random_char();while(a("#"+b).length>0)b+=this.generate_random_char();return b},e}(AbstractChosen),c=function(a){var b;return b=a.outerWidth()-a.width()},d.get_side_border_padding=c}.call(this);
|
@@ -0,0 +1,28 @@
|
|
1
|
+
$(function() {
|
2
|
+
$('form#form_edit_photos').on("click", ".form-photo-field .form-actions-right .confirm-delete", function() {
|
3
|
+
if ( confirm( $(this).attr('data-confirm') ) ) {
|
4
|
+
$.ajax({
|
5
|
+
type: "POST",
|
6
|
+
dataType: 'script',
|
7
|
+
data: { '_method': 'delete' },
|
8
|
+
url: this.href
|
9
|
+
});
|
10
|
+
}
|
11
|
+
|
12
|
+
//TODO if all fields are deleted, show info - 0 photos and dont show form actions
|
13
|
+
|
14
|
+
return false;
|
15
|
+
});
|
16
|
+
|
17
|
+
$('#more_photo_options_field #toggle_advanced_options').click(function(e){
|
18
|
+
e.preventDefault();
|
19
|
+
$('#more_options').animate({opacity: 'toggle', height: 'toggle'}, 250);
|
20
|
+
|
21
|
+
$('html,body').animate({
|
22
|
+
scrollTop: $('#toggle_advanced_options').parent().offset().top
|
23
|
+
}, 250);
|
24
|
+
});
|
25
|
+
|
26
|
+
$(".chzn-select").chosen();
|
27
|
+
|
28
|
+
});
|
@@ -0,0 +1,218 @@
|
|
1
|
+
Version 1.5.4 (2012-04-12)
|
2
|
+
Flash: Disable scripting if swf was loaded from another domain.
|
3
|
+
Version 1.5.3 (2012-04-05)
|
4
|
+
HTML5: Check if xhr object is initialized, before calling abort() on it.
|
5
|
+
HTML4: Postpone form removal until uploaders state changes, to avoid error on resuming stopped uploads.
|
6
|
+
BrowserPlus: Fix mechanical typo, that caused error during mime type check.
|
7
|
+
BrowserPlus: browserPlus.Uploader.Cancel() has two required parameters, dies with the error if not passed.
|
8
|
+
Flash: Improve runtime's behaviour during upload cancellation.
|
9
|
+
Flash: Survive the case when GPSVersionID contains unexpected value.
|
10
|
+
Flash: Fix random freeze in Chrome's bundled Flash Player.
|
11
|
+
Flash: Avoid the silent break when URLStream not yet open, but close is called on it.
|
12
|
+
Flash: Move Destroy handler out of Flash:Init handler, since it might be called not only after Flash:Init but also before it.
|
13
|
+
Flash: Avoid warning during build with mxmlc.
|
14
|
+
Try removeEventListener first in IE and only if it fails - detachEvent.
|
15
|
+
Fix plupload.getPos to return proper value in IE8+.
|
16
|
+
Do not initiate plupload.STARTED state, if file queue is empty.
|
17
|
+
Additional language packs: Estonian, Polish, Korean, French-Canadian, Greek, Persian/Farsi.
|
18
|
+
Version 1.5.2 (2012-01-06)
|
19
|
+
UI Widget: Do not show UI if no runtime can be initialized.
|
20
|
+
UI Widget: Timely update file size and total size if resize in action.
|
21
|
+
UI Widget: Constrain renaming feature to queued files only.
|
22
|
+
UI Widget: Disable Add button properly, if requested, rather then just hide.
|
23
|
+
HTML4/HTML5/BrowserPlus: Avoid adding mime type twice to dialog trigger.
|
24
|
+
HTML5: fix regression, when unresized images were failing on FF3.6.
|
25
|
+
HTML5: Constrain Gecko 2,5,6 workaround to multipart mode only.
|
26
|
+
HTML5/Flash: Take into account weird possibilities of ExifVersion being a string, rather then standard Undefined.
|
27
|
+
Flash: Simplify event dispatching in BitmapDataUnlimited class, in order to avoid freezing on resizing in FP11.
|
28
|
+
Add ability to disable file dialog trigger on request (uploader.disableBrowse(true/false)).
|
29
|
+
Support for immediate abort of upload process, be it chunked upload or regular one.
|
30
|
+
Abort all activity, before destroying uploader.
|
31
|
+
Revive temporary file removal logic in upload.php.
|
32
|
+
Fix potential vulnerability in dump.php and upload.php.
|
33
|
+
Additional MIME types: application/vnd.openxmlformats-officedocument.*, application/x-javascript, application/json, text/css,css, application/vnd.oasis.opendocument.formula-templat.
|
34
|
+
Additional language packs: Hungarian, Croatian, Serbian, Romanian.
|
35
|
+
Version 1.5.1.1 (2011-09-27)
|
36
|
+
HTML5: Fix mechanical typo, that successfully broke drag and drop, wherever could.
|
37
|
+
Version 1.5.1 (2011-09-26)
|
38
|
+
HTML4: Add support for server responses in HTML format.
|
39
|
+
HTML5: Disable multiple file selection in Safari 5.x for Windows (see #363).
|
40
|
+
HTML5: Gecko 2/5/6 should upload chunks as binary strings when in chunking mode and client side resize is requested.
|
41
|
+
Flash: Enforce URLStream mode when custom headers are passed.
|
42
|
+
Flash: Fix embedding problems in IE9 (and all other IEs).
|
43
|
+
Flash/Gears/BrowserPlus/SilverLight: Expose multi_selection feature, to be used in required_features (mainly to overcome Safari for Windows problem).
|
44
|
+
SilverLight: Properly handle custom and null headers.
|
45
|
+
UploadComplete moved to fire after the last StateChanged event.
|
46
|
+
Additional language packs: Finnish.
|
47
|
+
Version 1.5b (2011-09-11)
|
48
|
+
UI Widget: Fix sortable logic.
|
49
|
+
UI Widget: Fix bug, when message was displayed simultaneously across all Plupload UI instances on the page.
|
50
|
+
UI Widget: notify() method is now public - users can throw their own messages into the widget header.
|
51
|
+
HTML4/HTML5: Revise input[type=file] placement logic to support cursor styling on Geko 2+.
|
52
|
+
HTML5: Revise Drag'n'Drop detection logic.
|
53
|
+
HTML5: Make Exif and GPS information available to user, introduce two new events: ExifData and GpsData.
|
54
|
+
HTML5: Add support for File.prototype.slice() method (mozSlice/webkitSlice) in order to be able to upload files in chunks without preloading.
|
55
|
+
HTML5: Remove any JPEG headers before restoring them, 'cause user agent (like Chrome), might be inserting it's own.
|
56
|
+
Flash: Remove a limit on the depth of image header check, since it still fails in some cases and performance gain is negligible.
|
57
|
+
Flash: Fix regression, when runtime hanged when not images where passed in as images.
|
58
|
+
SilverLight: Fix bug, when JSON serializer was failing on null.
|
59
|
+
SilverLight: Remove cast to integer for chunk boundary, which resulted in a wrong size for last chunks on huge files.
|
60
|
+
SilverLight: Increase read buffer, add disposal of ImageStream and FileStream, optimize for performance.
|
61
|
+
Updated build.xml to include language packs in release package under js/ folder.
|
62
|
+
Gears/BrowserPlus: Add support for * file filter.
|
63
|
+
BeforeUpload now can cancel upload if required.
|
64
|
+
Additional MIME types: text/csv, image/photoshop, video/x-ms-wmv, video/avi, video/webm support
|
65
|
+
Additional language packs: Japanese
|
66
|
+
Cleaned examples.
|
67
|
+
Version 1.4.3.2 (2011-04-13)
|
68
|
+
Fixed bug in HTML5 runtime, when was reduced by a factor of 100 after every upload.
|
69
|
+
Version 1.4.3.1 (2011-04-12)
|
70
|
+
Fixed build script, mistakenly populating jquery.plupload.queue directory from jquery.ui.plupload sources.
|
71
|
+
Fixed script urls in all examples, build script now will alter them automatically from dev to release when needed.
|
72
|
+
Fixed isEmptyObj undefined error in HTML4 runtime.
|
73
|
+
Fixed bug in UI Widget preventing UploadComplete from triggering.
|
74
|
+
Version 1.4.3 (2011-04-11)
|
75
|
+
Added Latvian language pack and updated French.
|
76
|
+
Fixed bug in Flash runtime when JPEG header was not investigated deep enough to reach SOFn marker in large images.
|
77
|
+
Fixed bug, when PNGs were cropped to width in Flash runtimes, rather then resized.
|
78
|
+
Fixed Flash to allow multiple uploading of the same file, with different settings.
|
79
|
+
Fixed Flash runtime to clean anonymous listeners properly.
|
80
|
+
Fixed HTML5 runtime to resolve to mimeType in case-insensitive way.
|
81
|
+
Fixed HTML5/Flash/SilverLight/Gears runtimes for inconsistency in naming of chunks feature, comparing to other runtimes.
|
82
|
+
Fixed HTML4/HTML5 runtimes for input[type=file] to outsize contaner effectively enough to fill the whole click area.
|
83
|
+
Fixed all runtimes to preserve position (relative/absolute) rule on containers that already have it.
|
84
|
+
Fixed SilverLight runtime to support large files (over 2GB).
|
85
|
+
Restructured the examples, src and build scripts to make it more clear that jQuery is optional.
|
86
|
+
Added support for *.* filter.
|
87
|
+
Added support for preserving ICC and IPTC headers when resizing JPEGs.
|
88
|
+
Added Image.onerror/onabort handlers to HTML5 in order to gracefully bypass faulty images.
|
89
|
+
Added ability to drop image size (by lowering quality), while preserving original dimension (HTML5/Flash/Gears).
|
90
|
+
Ported EXIF, ICC, IPTC preservation code to Flash runtime.
|
91
|
+
Version 1.4.2 (2011-02-20)
|
92
|
+
Added Brazilian Portuguese, German, Russian and Spanish translations.
|
93
|
+
Added support for file_data_name option to SilverLight runtime.
|
94
|
+
Added support for better quality image resizing to Flash runtime.
|
95
|
+
Added support for properly handling images with dimensions up to 8191x8191 pixels to Flash runtime.
|
96
|
+
Added 'updatelist' event to UI Widget, which will be triggered every time file list will get redrawn.
|
97
|
+
Added support for dynamically changing options to UI Widget.
|
98
|
+
Fixed HTML4 runtime bug, when UploadFile handler was attached twice.
|
99
|
+
Fixed HTML5 to use FileReader.readAsBinaryString() instead of File.getAsBinary() on newer WebKit browsers (like Chrome 9).
|
100
|
+
Fixed Flash runtime from sending duplicate Filename param, when using FileReference.upload().
|
101
|
+
Updated S3 example to illustrate support for a proper progress indication.
|
102
|
+
Version 1.4.1 (2011-02-01)
|
103
|
+
Added an example on how to use Plupload with Amazon S3 written in PHP but can easily be ported to other languages.
|
104
|
+
Fixed bug where hidden input elements wasn't created when the multiple_queues option wasn't used.
|
105
|
+
Fixed bug where FF4 would produce an exception about missing BlobBuilder.
|
106
|
+
Version 1.4.0 (2011-01-26)
|
107
|
+
Added removeEvent and removeAllEvents methods and modified addEvent accordingly, in order to support dynamic unload.
|
108
|
+
Added unbindAll method.
|
109
|
+
Added UploadComplete event, which fires when internal iterator reaches the end of the queue.
|
110
|
+
Added public destroy method to plupload object, new event - Destroy, and corresponding handlers to all runtimes.
|
111
|
+
Added Czech, Italian, French, Dutch translations.
|
112
|
+
Added support for translatable error messages.
|
113
|
+
Added two new options: browse_button_hover and browse_button_active, in order to support browse_button interactivity.
|
114
|
+
Added support for 'multi_selection: false' to Silverlight runtime.
|
115
|
+
Added support for video/mp4, video/x-m4v and audio/mp4 MIME Types.
|
116
|
+
Added artificial sendAsBinary method to XMLHttpRequest.prototype for browsers that have support for BlobBuilder and typed arrays.
|
117
|
+
Added version tracking variable into plupload object and version comment to the header of every file.
|
118
|
+
Fixed measurements of browse_button element in order to size and position input[type=file] element to fit it fully.
|
119
|
+
Fixed Flash runtime behavior for multiple_select=false and other simpleUpload usage cases: basically new FileReference has to be created for every select dialog.
|
120
|
+
Fixed browser sniffer to match only Safari, for fakeSafariDragDrop (seems like Safari on Mac doesn't require it either).
|
121
|
+
Fixed so that ExternalInterface escapes strings properly, before passing them to JS.
|
122
|
+
Fixed eventual reinitialization of flash/silverlight runtimes, especially for cases when object wrapper needed to be programmatically hidden and then shown again.
|
123
|
+
Fixed so that Plupload will now ignore files with duplicate names when adding to the queue, in one set. Mainly introduced to work around Safari on Windows bug (https://bugs.webkit.org/show_bug.cgi?id=37957).
|
124
|
+
Fixed bug, when final UploadProgress was firing after FileUploaded for Flash simpleUpload.
|
125
|
+
Fixed bug where upload would fail if an error was produced inside the FilesAdded event.
|
126
|
+
Fixed bug in Flash runtime when it used a wrong size when resizing, but not chunking.
|
127
|
+
Fixed bug in Silverlight runtime that would keep sending 0 byte packages when a picture was chunked before resized.
|
128
|
+
Disabled blur filter (is going to be replaced with some bilinear resampling in next release).
|
129
|
+
Completely revised UI Widget, to be more jQuery UI oriented. Optionally depends on UI Button, UI Sortable, UI ProgressBar.
|
130
|
+
Version 1.3.0 (2010-11-24)
|
131
|
+
Added new jQuery UI widget that supports jQuery UI themes.
|
132
|
+
Added new multiple_queues option that enables you to upload multiple times in the queue widgets.
|
133
|
+
Added support for crossdomain loading of the XAP and SWF files and crossdomain upload.
|
134
|
+
Added new multiple_queues option that enables you to upload multiple times in the queue widgets.
|
135
|
+
Added support for crossdomain loading of the XAP and SWF files and crossdomain upload.
|
136
|
+
Added preinit/init options to to ease up the binding of custom events to queueWidget and the Uploader class.
|
137
|
+
Added drag/drop support for Safari until they fix the broken drag/drop support on Windows.
|
138
|
+
Added events example file that show how to bind all events and display event specific data.
|
139
|
+
Added support for retaining Exif data on images when they where resized using the HTML5 runtime.
|
140
|
+
Fixed logic issue with the upload.php example file. Chunking wasn't working correctly.
|
141
|
+
Fixed issue with HTML4 not handling the form encoding correctly on older IE versions. Patch contributed by jinxdone.
|
142
|
+
Fixed so the HTML4 runtime only submits the defined multipart_params arguments.
|
143
|
+
Fixes issue where it wasn't possible to dynamically override url or mutlipart_params for the HTML4 runtime.
|
144
|
+
Fixed so all runtimes pass the name, chunk and chunks parameters as multipart parameters instead of querystring parameters.
|
145
|
+
Fixed so files are read using the newer FileReader class if it's available if not it tries the older getAsXXX on Gecko.
|
146
|
+
Fixed bug where IE 9 beta 1 wouldn't render Silverlight properly.
|
147
|
+
Fixed bug where Flash would do extra empty requests if images below a specific size would be uploaded.
|
148
|
+
Fixed bug where Google Gears would resize and re-encode images even if the it wasn't changed in scale.
|
149
|
+
Fixed bug where the HTML5 runtime wouldn't free memory after each request on Gecko.
|
150
|
+
Version 1.2.4 (2010-09-08)
|
151
|
+
Added new BeforeUpload event to make it easier to override settings before a file is uploaded.
|
152
|
+
Added new automatic usage of FileReference in Flash if it's possible. Contributed by Marcel Jackwerth.
|
153
|
+
Added new chunking support for Chrome 5 and Firefox 3.6 using the HTML 5 runtime.
|
154
|
+
Added new multipart upload support for WebKit using the HTML 5 runtime and the FormData object.
|
155
|
+
Added new image scaling method for the Flash runtime contributed by rcoopman.
|
156
|
+
Added new alert error message if the user selected invalid files.
|
157
|
+
Added new automatic unique name generation to the example.php script. Contributed by Brandon Kelly.
|
158
|
+
Changed so the default upload method is multipart and the default chunk size is 0.
|
159
|
+
Fixed progress issue with the HTML5 runtime running on Gecko.
|
160
|
+
Fixed so longer extensions can be used such as .tar.gz.
|
161
|
+
Fixed so the file extension is retained when using the unique_names option.
|
162
|
+
Version 1.2.3 (2010-05-27)
|
163
|
+
Added new drag/drop support for HTML5 running on Chrome beta.
|
164
|
+
Added new multipart state for the features object. It's now possible to detect multipart support.
|
165
|
+
Added new getFeatures function to all runtime. Basic concept by Javier Martinez Fernandez.
|
166
|
+
Fixed bug where runtimes where initialized even if they didn't match the required_features setting.
|
167
|
+
Version 1.2.2.1 (2010-05-04)
|
168
|
+
Added new headers option, enables you to set custom headers for the upload requests.
|
169
|
+
Fixed bug where the file extension checking was case sensitive.
|
170
|
+
Version 1.2.2 (2010-04-26)
|
171
|
+
Added new file_data_name option that enables you to set the multipart file data param. Patch contributed by Alex Ganov.
|
172
|
+
Added new FILE_SIZE_ERROR type that will be triggered if the user selected a file that is to large or zero bytes.
|
173
|
+
Added new FILE_EXTENSION_ERROR type that will be triggered if you add a file with an invalid file extension.
|
174
|
+
Added new required_features setting, enables you to specify a list of required features that the runtime must have.
|
175
|
+
Fixed so the plupload.buildUrl function uses the UTF compatible encodeURIComponent method instead of escape.
|
176
|
+
Fixed so that all file types can be selected if you don't specify a filter setting.
|
177
|
+
Fixed so more valid HTTP status codes are accepted as valid responses.
|
178
|
+
Fixed so all runtimes fills the features object with available features.
|
179
|
+
Fixed some issues with the HTML4 runtime if there wasn't any existing forms on the page.
|
180
|
+
Fixed some conflict issues with HTML4 runtime and forms with the input names of action or target.
|
181
|
+
Fixed bug where some Gecko versions would produce exceptions when checking the HTTP status of a XHR.
|
182
|
+
Version 1.2.1 (2010-03-22)
|
183
|
+
Fixed bug with incorrect aspect ratio in Flash image scaling.
|
184
|
+
Fixed bug where chunked uploads could get scrambled in the Flash runtime. Patch contributed by Grady Werner.
|
185
|
+
Fixed bug where a beta version of Chrome wouldn't handle drag/drop correctly because of missing drag effect.
|
186
|
+
Fixed so the HTML 4 runtime displays N/A for file sizes and the progress is based on uploaded files instead of bytes.
|
187
|
+
Fixed so chunking can be disabled properly in Flash but that will affect the progress bar.
|
188
|
+
Fixed so queue widget displays the drag/drop message if file queue is emptied.
|
189
|
+
Fixed small files are uploaded as one single chunk and not forced into 4 chunks in the Flash runtime.
|
190
|
+
Version 1.2 (2010-03-09)
|
191
|
+
Added new rename file support for jQuery queue widget, click on a file name to rename it if it's enabled.
|
192
|
+
Added official ChunkUploaded event, it similar to FileUploaded but executed for each chunk.
|
193
|
+
Added bytes per second support to total queue progress.
|
194
|
+
Added better error handling to core API using the new Error event.
|
195
|
+
Added better error handling to jQuery queue widget.
|
196
|
+
Fixed so chunking uploads is dispatch from JS not from inside Flash/Silverlight.
|
197
|
+
Version 1.1.1 (2010-02-25)
|
198
|
+
Added new setup setting to queue widget. Makes it easier to bind custom events to uploader instance.
|
199
|
+
Fixed so it's possible to disable chunking compleatly. It's now disabled by default.
|
200
|
+
Fixed bug where multipart mode was enabled all the time in the Flash runtime.
|
201
|
+
Fixed bug where chunked uploading in Silverlight would fail.
|
202
|
+
Fixed bug where the delete button was visible while uploading.
|
203
|
+
Fixed bug where unique_names setting wasn't working when the core API was used.
|
204
|
+
Fixed bug where the queue widget wouldn't display the currently uploaded file if the unique_names was enabled.
|
205
|
+
Version 1.1 (2010-02-24)
|
206
|
+
Added new multipart and multipart_params support.
|
207
|
+
Added new container option, enables you to specify where flash/silverlight objects would be added.
|
208
|
+
Added chunking support to BrowserPlus runtime, contributed by Steve Spencer.
|
209
|
+
Added FileUploaded event that fires when a file is uploaded.
|
210
|
+
Added more easily understandable buttons to queue widget.
|
211
|
+
Added html4 runtime, contributed by Ryan Demmer.
|
212
|
+
Fixed issues with i18n support and added a Swedish and Danish language pack.
|
213
|
+
Fixed bug where the Flash runtime could do empty requests if the image was scaled down.
|
214
|
+
Fixed bug where uploading small images in Silverlight would produce an exception.
|
215
|
+
Fixed so the runtime list can include whitespace or missing runtimes. Patch contributed by �yvind Sean Kinsey.
|
216
|
+
Fixed so to large files are ignored and never dispatched to the FilesAdded event.
|
217
|
+
Version 1.0 (2010-02-03)
|
218
|
+
First official release of Plupload.
|