jquery-ui-rails 4.0.0 → 5.0.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of jquery-ui-rails might be problematic. Click here for more details.
- data/.travis.yml +0 -1
- data/Gemfile +1 -1
- data/History.md +62 -0
- data/README.md +86 -74
- data/Rakefile +69 -37
- data/VERSIONS.md +36 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/{vendor/assets/javascripts/jquery.ui.accordion.js → app/assets/javascripts/jquery-ui/accordion.js} +90 -74
- data/{vendor/assets/javascripts/jquery.ui.autocomplete.js → app/assets/javascripts/jquery-ui/autocomplete.js} +105 -91
- data/{vendor/assets/javascripts/jquery.ui.button.js → app/assets/javascripts/jquery-ui/button.js} +60 -68
- data/{vendor/assets/javascripts/jquery.ui.core.js → app/assets/javascripts/jquery-ui/core.js} +112 -132
- data/app/assets/javascripts/jquery-ui/datepicker-af.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ar-DZ.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ar.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-az.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-be.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-bg.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-bs.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ca.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-cs.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-cy-GB.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-da.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-de.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-el.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-en-AU.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-en-GB.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-en-NZ.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-eo.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-es.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-et.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-eu.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fa.js +73 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fi.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fo.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CA.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fr.js +39 -0
- data/app/assets/javascripts/jquery-ui/datepicker-gl.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-he.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hi.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hr.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hu.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hy.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-id.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-is.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-it-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-it.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ja.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ka.js +35 -0
- data/app/assets/javascripts/jquery-ui/datepicker-kk.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-km.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ko.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ky.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-lb.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-lt.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-lv.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-mk.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ml.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ms.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nb.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nl-BE.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nl.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nn.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-no.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-pl.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-pt-BR.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-pt.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-rm.js +35 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ro.js +40 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ru.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sk.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sl.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sq.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sr-SR.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sr.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sv.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ta.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-th.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-tj.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-tr.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-uk.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-vi.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-zh-CN.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-zh-HK.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-zh-TW.js +37 -0
- data/{vendor/assets/javascripts/jquery.ui.datepicker.js → app/assets/javascripts/jquery-ui/datepicker.js} +120 -80
- data/{vendor/assets/javascripts/jquery.ui.dialog.js → app/assets/javascripts/jquery-ui/dialog.js} +298 -190
- data/app/assets/javascripts/jquery-ui/draggable.js +1132 -0
- data/app/assets/javascripts/jquery-ui/droppable.js +418 -0
- data/{vendor/assets/javascripts/jquery.ui.effect-blind.js → app/assets/javascripts/jquery-ui/effect-blind.js} +21 -13
- data/{vendor/assets/javascripts/jquery.ui.effect-bounce.js → app/assets/javascripts/jquery-ui/effect-bounce.js} +19 -9
- data/{vendor/assets/javascripts/jquery.ui.effect-clip.js → app/assets/javascripts/jquery-ui/effect-clip.js} +19 -9
- data/{vendor/assets/javascripts/jquery.ui.effect-drop.js → app/assets/javascripts/jquery-ui/effect-drop.js} +20 -10
- data/{vendor/assets/javascripts/jquery.ui.effect-explode.js → app/assets/javascripts/jquery-ui/effect-explode.js} +21 -11
- data/app/assets/javascripts/jquery-ui/effect-fade.js +42 -0
- data/{vendor/assets/javascripts/jquery.ui.effect-fold.js → app/assets/javascripts/jquery-ui/effect-fold.js} +19 -9
- data/{vendor/assets/javascripts/jquery.ui.effect-highlight.js → app/assets/javascripts/jquery-ui/effect-highlight.js} +19 -9
- data/app/assets/javascripts/jquery-ui/effect-puff.js +63 -0
- data/{vendor/assets/javascripts/jquery.ui.effect-pulsate.js → app/assets/javascripts/jquery-ui/effect-pulsate.js} +19 -9
- data/app/assets/javascripts/jquery-ui/effect-scale.js +92 -0
- data/{vendor/assets/javascripts/jquery.ui.effect-shake.js → app/assets/javascripts/jquery-ui/effect-shake.js} +20 -10
- data/{vendor/assets/javascripts/jquery.ui.effect-scale.js → app/assets/javascripts/jquery-ui/effect-size.js} +20 -105
- data/{vendor/assets/javascripts/jquery.ui.effect-slide.js → app/assets/javascripts/jquery-ui/effect-slide.js} +19 -9
- data/{vendor/assets/javascripts/jquery.ui.effect-transfer.js → app/assets/javascripts/jquery-ui/effect-transfer.js} +23 -13
- data/app/assets/javascripts/jquery-ui/effect.all.js +16 -0
- data/{vendor/assets/javascripts/jquery.ui.effect.js → app/assets/javascripts/jquery-ui/effect.js} +125 -92
- data/{vendor/assets/javascripts/jquery.ui.menu.js → app/assets/javascripts/jquery-ui/menu.js} +127 -102
- data/{vendor/assets/javascripts/jquery.ui.mouse.js → app/assets/javascripts/jquery-ui/mouse.js} +57 -27
- data/{vendor/assets/javascripts/jquery.ui.position.js → app/assets/javascripts/jquery-ui/position.js} +47 -27
- data/{vendor/assets/javascripts/jquery.ui.progressbar.js → app/assets/javascripts/jquery-ui/progressbar.js} +27 -13
- data/{vendor/assets/javascripts/jquery.ui.resizable.js → app/assets/javascripts/jquery-ui/resizable.js} +454 -243
- data/{vendor/assets/javascripts/jquery.ui.selectable.js → app/assets/javascripts/jquery-ui/selectable.js} +26 -16
- data/app/assets/javascripts/jquery-ui/selectmenu.js +620 -0
- data/{vendor/assets/javascripts/jquery.ui.slider.js → app/assets/javascripts/jquery-ui/slider.js} +159 -91
- data/{vendor/assets/javascripts/jquery.ui.sortable.js → app/assets/javascripts/jquery-ui/sortable.js} +168 -114
- data/{vendor/assets/javascripts/jquery.ui.spinner.js → app/assets/javascripts/jquery-ui/spinner.js} +54 -32
- data/{vendor/assets/javascripts/jquery.ui.tabs.js → app/assets/javascripts/jquery-ui/tabs.js} +108 -73
- data/{vendor/assets/javascripts/jquery.ui.tooltip.js → app/assets/javascripts/jquery-ui/tooltip.js} +134 -75
- data/{vendor/assets/javascripts/jquery.ui.widget.js → app/assets/javascripts/jquery-ui/widget.js} +81 -44
- data/app/assets/javascripts/jquery-ui.js +37 -0
- data/{vendor/assets/stylesheets/jquery.ui.accordion.css.erb → app/assets/stylesheets/jquery-ui/accordion.css} +7 -9
- data/app/assets/stylesheets/jquery-ui/all.css +14 -0
- data/app/assets/stylesheets/jquery-ui/autocomplete.css +21 -0
- data/app/assets/stylesheets/jquery-ui/base.css +30 -0
- data/{vendor/assets/stylesheets/jquery.ui.button.css.erb → app/assets/stylesheets/jquery-ui/button.css} +5 -5
- data/{vendor/assets/stylesheets/jquery.ui.core.css.erb → app/assets/stylesheets/jquery-ui/core.css} +8 -4
- data/{vendor/assets/stylesheets/jquery.ui.datepicker.css.erb → app/assets/stylesheets/jquery-ui/datepicker.css} +6 -9
- data/{vendor/assets/stylesheets/jquery.ui.dialog.css.erb → app/assets/stylesheets/jquery-ui/dialog.css} +10 -8
- data/app/assets/stylesheets/jquery-ui/draggable.css +16 -0
- data/app/assets/stylesheets/jquery-ui/menu.css +67 -0
- data/app/assets/stylesheets/jquery-ui/progressbar.css +32 -0
- data/{vendor/assets/stylesheets/jquery.ui.resizable.css.erb → app/assets/stylesheets/jquery-ui/resizable.css} +6 -6
- data/app/assets/stylesheets/jquery-ui/selectable.css +21 -0
- data/app/assets/stylesheets/jquery-ui/selectmenu.css +64 -0
- data/{vendor/assets/stylesheets/jquery.ui.slider.css.erb → app/assets/stylesheets/jquery-ui/slider.css} +8 -6
- data/app/assets/stylesheets/jquery-ui/sortable.css +16 -0
- data/{vendor/assets/stylesheets/jquery.ui.spinner.css.erb → app/assets/stylesheets/jquery-ui/spinner.css} +8 -8
- data/{vendor/assets/stylesheets/jquery.ui.tabs.css.erb → app/assets/stylesheets/jquery-ui/tabs.css} +11 -12
- data/{vendor/assets/stylesheets/jquery.ui.theme.css.erb → app/assets/stylesheets/jquery-ui/theme.css.erb} +29 -11
- data/{vendor/assets/stylesheets/jquery.ui.tooltip.css.erb → app/assets/stylesheets/jquery-ui/tooltip.css} +6 -4
- data/app/assets/stylesheets/jquery-ui.css +1 -0
- data/lib/jquery/ui/rails/version.rb +2 -1
- metadata +155 -161
- data/vendor/assets/javascripts/jquery.ui.all.js +0 -34
- data/vendor/assets/javascripts/jquery.ui.datepicker-af.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ar-DZ.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ar.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-az.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-be.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-bg.js +0 -24
- data/vendor/assets/javascripts/jquery.ui.datepicker-bs.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ca.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-cs.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-cy-GB.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-da.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-de.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-el.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-en-AU.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-en-GB.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-en-NZ.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-eo.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-es.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-et.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-eu.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fa.js +0 -59
- data/vendor/assets/javascripts/jquery.ui.datepicker-fi.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fo.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fr-CA.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fr-CH.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fr.js +0 -25
- data/vendor/assets/javascripts/jquery.ui.datepicker-gl.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-he.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-hi.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-hr.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-hu.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-hy.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-id.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-is.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-it.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ja.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ka.js +0 -21
- data/vendor/assets/javascripts/jquery.ui.datepicker-kk.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-km.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ko.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ky.js +0 -24
- data/vendor/assets/javascripts/jquery.ui.datepicker-lb.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-lt.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-lv.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-mk.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ml.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ms.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-nb.js +0 -22
- data/vendor/assets/javascripts/jquery.ui.datepicker-nl-BE.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-nl.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-nn.js +0 -22
- data/vendor/assets/javascripts/jquery.ui.datepicker-no.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-pl.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-pt-BR.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-pt.js +0 -22
- data/vendor/assets/javascripts/jquery.ui.datepicker-rm.js +0 -21
- data/vendor/assets/javascripts/jquery.ui.datepicker-ro.js +0 -26
- data/vendor/assets/javascripts/jquery.ui.datepicker-ru.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sk.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sl.js +0 -24
- data/vendor/assets/javascripts/jquery.ui.datepicker-sq.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sr-SR.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sr.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sv.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ta.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-th.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-tj.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-tr.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-uk.js +0 -24
- data/vendor/assets/javascripts/jquery.ui.datepicker-vi.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-zh-CN.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-zh-HK.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-zh-TW.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.draggable.js +0 -950
- data/vendor/assets/javascripts/jquery.ui.droppable.js +0 -376
- data/vendor/assets/javascripts/jquery.ui.effect-fade.js +0 -32
- data/vendor/assets/javascripts/jquery.ui.effect.all.js +0 -14
- data/vendor/assets/stylesheets/jquery.ui.all.css.erb +0 -14
- data/vendor/assets/stylesheets/jquery.ui.autocomplete.css.erb +0 -21
- data/vendor/assets/stylesheets/jquery.ui.base.css.erb +0 -27
- data/vendor/assets/stylesheets/jquery.ui.menu.css.erb +0 -81
- data/vendor/assets/stylesheets/jquery.ui.progressbar.css.erb +0 -32
- data/vendor/assets/stylesheets/jquery.ui.selectable.css.erb +0 -19
@@ -0,0 +1,418 @@
|
|
1
|
+
//= require jquery-ui/core
|
2
|
+
//= require jquery-ui/widget
|
3
|
+
//= require jquery-ui/mouse
|
4
|
+
//= require jquery-ui/draggable
|
5
|
+
|
6
|
+
/*!
|
7
|
+
* jQuery UI Droppable 1.11.3
|
8
|
+
* http://jqueryui.com
|
9
|
+
*
|
10
|
+
* Copyright jQuery Foundation and other contributors
|
11
|
+
* Released under the MIT license.
|
12
|
+
* http://jquery.org/license
|
13
|
+
*
|
14
|
+
* http://api.jqueryui.com/droppable/
|
15
|
+
*/
|
16
|
+
(function( factory ) {
|
17
|
+
if ( typeof define === "function" && define.amd ) {
|
18
|
+
|
19
|
+
// AMD. Register as an anonymous module.
|
20
|
+
define([
|
21
|
+
"jquery",
|
22
|
+
"./core",
|
23
|
+
"./widget",
|
24
|
+
"./mouse",
|
25
|
+
"./draggable"
|
26
|
+
], factory );
|
27
|
+
} else {
|
28
|
+
|
29
|
+
// Browser globals
|
30
|
+
factory( jQuery );
|
31
|
+
}
|
32
|
+
}(function( $ ) {
|
33
|
+
|
34
|
+
$.widget( "ui.droppable", {
|
35
|
+
version: "1.11.3",
|
36
|
+
widgetEventPrefix: "drop",
|
37
|
+
options: {
|
38
|
+
accept: "*",
|
39
|
+
activeClass: false,
|
40
|
+
addClasses: true,
|
41
|
+
greedy: false,
|
42
|
+
hoverClass: false,
|
43
|
+
scope: "default",
|
44
|
+
tolerance: "intersect",
|
45
|
+
|
46
|
+
// callbacks
|
47
|
+
activate: null,
|
48
|
+
deactivate: null,
|
49
|
+
drop: null,
|
50
|
+
out: null,
|
51
|
+
over: null
|
52
|
+
},
|
53
|
+
_create: function() {
|
54
|
+
|
55
|
+
var proportions,
|
56
|
+
o = this.options,
|
57
|
+
accept = o.accept;
|
58
|
+
|
59
|
+
this.isover = false;
|
60
|
+
this.isout = true;
|
61
|
+
|
62
|
+
this.accept = $.isFunction( accept ) ? accept : function( d ) {
|
63
|
+
return d.is( accept );
|
64
|
+
};
|
65
|
+
|
66
|
+
this.proportions = function( /* valueToWrite */ ) {
|
67
|
+
if ( arguments.length ) {
|
68
|
+
// Store the droppable's proportions
|
69
|
+
proportions = arguments[ 0 ];
|
70
|
+
} else {
|
71
|
+
// Retrieve or derive the droppable's proportions
|
72
|
+
return proportions ?
|
73
|
+
proportions :
|
74
|
+
proportions = {
|
75
|
+
width: this.element[ 0 ].offsetWidth,
|
76
|
+
height: this.element[ 0 ].offsetHeight
|
77
|
+
};
|
78
|
+
}
|
79
|
+
};
|
80
|
+
|
81
|
+
this._addToManager( o.scope );
|
82
|
+
|
83
|
+
o.addClasses && this.element.addClass( "ui-droppable" );
|
84
|
+
|
85
|
+
},
|
86
|
+
|
87
|
+
_addToManager: function( scope ) {
|
88
|
+
// Add the reference and positions to the manager
|
89
|
+
$.ui.ddmanager.droppables[ scope ] = $.ui.ddmanager.droppables[ scope ] || [];
|
90
|
+
$.ui.ddmanager.droppables[ scope ].push( this );
|
91
|
+
},
|
92
|
+
|
93
|
+
_splice: function( drop ) {
|
94
|
+
var i = 0;
|
95
|
+
for ( ; i < drop.length; i++ ) {
|
96
|
+
if ( drop[ i ] === this ) {
|
97
|
+
drop.splice( i, 1 );
|
98
|
+
}
|
99
|
+
}
|
100
|
+
},
|
101
|
+
|
102
|
+
_destroy: function() {
|
103
|
+
var drop = $.ui.ddmanager.droppables[ this.options.scope ];
|
104
|
+
|
105
|
+
this._splice( drop );
|
106
|
+
|
107
|
+
this.element.removeClass( "ui-droppable ui-droppable-disabled" );
|
108
|
+
},
|
109
|
+
|
110
|
+
_setOption: function( key, value ) {
|
111
|
+
|
112
|
+
if ( key === "accept" ) {
|
113
|
+
this.accept = $.isFunction( value ) ? value : function( d ) {
|
114
|
+
return d.is( value );
|
115
|
+
};
|
116
|
+
} else if ( key === "scope" ) {
|
117
|
+
var drop = $.ui.ddmanager.droppables[ this.options.scope ];
|
118
|
+
|
119
|
+
this._splice( drop );
|
120
|
+
this._addToManager( value );
|
121
|
+
}
|
122
|
+
|
123
|
+
this._super( key, value );
|
124
|
+
},
|
125
|
+
|
126
|
+
_activate: function( event ) {
|
127
|
+
var draggable = $.ui.ddmanager.current;
|
128
|
+
if ( this.options.activeClass ) {
|
129
|
+
this.element.addClass( this.options.activeClass );
|
130
|
+
}
|
131
|
+
if ( draggable ){
|
132
|
+
this._trigger( "activate", event, this.ui( draggable ) );
|
133
|
+
}
|
134
|
+
},
|
135
|
+
|
136
|
+
_deactivate: function( event ) {
|
137
|
+
var draggable = $.ui.ddmanager.current;
|
138
|
+
if ( this.options.activeClass ) {
|
139
|
+
this.element.removeClass( this.options.activeClass );
|
140
|
+
}
|
141
|
+
if ( draggable ){
|
142
|
+
this._trigger( "deactivate", event, this.ui( draggable ) );
|
143
|
+
}
|
144
|
+
},
|
145
|
+
|
146
|
+
_over: function( event ) {
|
147
|
+
|
148
|
+
var draggable = $.ui.ddmanager.current;
|
149
|
+
|
150
|
+
// Bail if draggable and droppable are same element
|
151
|
+
if ( !draggable || ( draggable.currentItem || draggable.element )[ 0 ] === this.element[ 0 ] ) {
|
152
|
+
return;
|
153
|
+
}
|
154
|
+
|
155
|
+
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || draggable.element ) ) ) {
|
156
|
+
if ( this.options.hoverClass ) {
|
157
|
+
this.element.addClass( this.options.hoverClass );
|
158
|
+
}
|
159
|
+
this._trigger( "over", event, this.ui( draggable ) );
|
160
|
+
}
|
161
|
+
|
162
|
+
},
|
163
|
+
|
164
|
+
_out: function( event ) {
|
165
|
+
|
166
|
+
var draggable = $.ui.ddmanager.current;
|
167
|
+
|
168
|
+
// Bail if draggable and droppable are same element
|
169
|
+
if ( !draggable || ( draggable.currentItem || draggable.element )[ 0 ] === this.element[ 0 ] ) {
|
170
|
+
return;
|
171
|
+
}
|
172
|
+
|
173
|
+
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || draggable.element ) ) ) {
|
174
|
+
if ( this.options.hoverClass ) {
|
175
|
+
this.element.removeClass( this.options.hoverClass );
|
176
|
+
}
|
177
|
+
this._trigger( "out", event, this.ui( draggable ) );
|
178
|
+
}
|
179
|
+
|
180
|
+
},
|
181
|
+
|
182
|
+
_drop: function( event, custom ) {
|
183
|
+
|
184
|
+
var draggable = custom || $.ui.ddmanager.current,
|
185
|
+
childrenIntersection = false;
|
186
|
+
|
187
|
+
// Bail if draggable and droppable are same element
|
188
|
+
if ( !draggable || ( draggable.currentItem || draggable.element )[ 0 ] === this.element[ 0 ] ) {
|
189
|
+
return false;
|
190
|
+
}
|
191
|
+
|
192
|
+
this.element.find( ":data(ui-droppable)" ).not( ".ui-draggable-dragging" ).each(function() {
|
193
|
+
var inst = $( this ).droppable( "instance" );
|
194
|
+
if (
|
195
|
+
inst.options.greedy &&
|
196
|
+
!inst.options.disabled &&
|
197
|
+
inst.options.scope === draggable.options.scope &&
|
198
|
+
inst.accept.call( inst.element[ 0 ], ( draggable.currentItem || draggable.element ) ) &&
|
199
|
+
$.ui.intersect( draggable, $.extend( inst, { offset: inst.element.offset() } ), inst.options.tolerance, event )
|
200
|
+
) { childrenIntersection = true; return false; }
|
201
|
+
});
|
202
|
+
if ( childrenIntersection ) {
|
203
|
+
return false;
|
204
|
+
}
|
205
|
+
|
206
|
+
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || draggable.element ) ) ) {
|
207
|
+
if ( this.options.activeClass ) {
|
208
|
+
this.element.removeClass( this.options.activeClass );
|
209
|
+
}
|
210
|
+
if ( this.options.hoverClass ) {
|
211
|
+
this.element.removeClass( this.options.hoverClass );
|
212
|
+
}
|
213
|
+
this._trigger( "drop", event, this.ui( draggable ) );
|
214
|
+
return this.element;
|
215
|
+
}
|
216
|
+
|
217
|
+
return false;
|
218
|
+
|
219
|
+
},
|
220
|
+
|
221
|
+
ui: function( c ) {
|
222
|
+
return {
|
223
|
+
draggable: ( c.currentItem || c.element ),
|
224
|
+
helper: c.helper,
|
225
|
+
position: c.position,
|
226
|
+
offset: c.positionAbs
|
227
|
+
};
|
228
|
+
}
|
229
|
+
|
230
|
+
});
|
231
|
+
|
232
|
+
$.ui.intersect = (function() {
|
233
|
+
function isOverAxis( x, reference, size ) {
|
234
|
+
return ( x >= reference ) && ( x < ( reference + size ) );
|
235
|
+
}
|
236
|
+
|
237
|
+
return function( draggable, droppable, toleranceMode, event ) {
|
238
|
+
|
239
|
+
if ( !droppable.offset ) {
|
240
|
+
return false;
|
241
|
+
}
|
242
|
+
|
243
|
+
var x1 = ( draggable.positionAbs || draggable.position.absolute ).left + draggable.margins.left,
|
244
|
+
y1 = ( draggable.positionAbs || draggable.position.absolute ).top + draggable.margins.top,
|
245
|
+
x2 = x1 + draggable.helperProportions.width,
|
246
|
+
y2 = y1 + draggable.helperProportions.height,
|
247
|
+
l = droppable.offset.left,
|
248
|
+
t = droppable.offset.top,
|
249
|
+
r = l + droppable.proportions().width,
|
250
|
+
b = t + droppable.proportions().height;
|
251
|
+
|
252
|
+
switch ( toleranceMode ) {
|
253
|
+
case "fit":
|
254
|
+
return ( l <= x1 && x2 <= r && t <= y1 && y2 <= b );
|
255
|
+
case "intersect":
|
256
|
+
return ( l < x1 + ( draggable.helperProportions.width / 2 ) && // Right Half
|
257
|
+
x2 - ( draggable.helperProportions.width / 2 ) < r && // Left Half
|
258
|
+
t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half
|
259
|
+
y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half
|
260
|
+
case "pointer":
|
261
|
+
return isOverAxis( event.pageY, t, droppable.proportions().height ) && isOverAxis( event.pageX, l, droppable.proportions().width );
|
262
|
+
case "touch":
|
263
|
+
return (
|
264
|
+
( y1 >= t && y1 <= b ) || // Top edge touching
|
265
|
+
( y2 >= t && y2 <= b ) || // Bottom edge touching
|
266
|
+
( y1 < t && y2 > b ) // Surrounded vertically
|
267
|
+
) && (
|
268
|
+
( x1 >= l && x1 <= r ) || // Left edge touching
|
269
|
+
( x2 >= l && x2 <= r ) || // Right edge touching
|
270
|
+
( x1 < l && x2 > r ) // Surrounded horizontally
|
271
|
+
);
|
272
|
+
default:
|
273
|
+
return false;
|
274
|
+
}
|
275
|
+
};
|
276
|
+
})();
|
277
|
+
|
278
|
+
/*
|
279
|
+
This manager tracks offsets of draggables and droppables
|
280
|
+
*/
|
281
|
+
$.ui.ddmanager = {
|
282
|
+
current: null,
|
283
|
+
droppables: { "default": [] },
|
284
|
+
prepareOffsets: function( t, event ) {
|
285
|
+
|
286
|
+
var i, j,
|
287
|
+
m = $.ui.ddmanager.droppables[ t.options.scope ] || [],
|
288
|
+
type = event ? event.type : null, // workaround for #2317
|
289
|
+
list = ( t.currentItem || t.element ).find( ":data(ui-droppable)" ).addBack();
|
290
|
+
|
291
|
+
droppablesLoop: for ( i = 0; i < m.length; i++ ) {
|
292
|
+
|
293
|
+
// No disabled and non-accepted
|
294
|
+
if ( m[ i ].options.disabled || ( t && !m[ i ].accept.call( m[ i ].element[ 0 ], ( t.currentItem || t.element ) ) ) ) {
|
295
|
+
continue;
|
296
|
+
}
|
297
|
+
|
298
|
+
// Filter out elements in the current dragged item
|
299
|
+
for ( j = 0; j < list.length; j++ ) {
|
300
|
+
if ( list[ j ] === m[ i ].element[ 0 ] ) {
|
301
|
+
m[ i ].proportions().height = 0;
|
302
|
+
continue droppablesLoop;
|
303
|
+
}
|
304
|
+
}
|
305
|
+
|
306
|
+
m[ i ].visible = m[ i ].element.css( "display" ) !== "none";
|
307
|
+
if ( !m[ i ].visible ) {
|
308
|
+
continue;
|
309
|
+
}
|
310
|
+
|
311
|
+
// Activate the droppable if used directly from draggables
|
312
|
+
if ( type === "mousedown" ) {
|
313
|
+
m[ i ]._activate.call( m[ i ], event );
|
314
|
+
}
|
315
|
+
|
316
|
+
m[ i ].offset = m[ i ].element.offset();
|
317
|
+
m[ i ].proportions({ width: m[ i ].element[ 0 ].offsetWidth, height: m[ i ].element[ 0 ].offsetHeight });
|
318
|
+
|
319
|
+
}
|
320
|
+
|
321
|
+
},
|
322
|
+
drop: function( draggable, event ) {
|
323
|
+
|
324
|
+
var dropped = false;
|
325
|
+
// Create a copy of the droppables in case the list changes during the drop (#9116)
|
326
|
+
$.each( ( $.ui.ddmanager.droppables[ draggable.options.scope ] || [] ).slice(), function() {
|
327
|
+
|
328
|
+
if ( !this.options ) {
|
329
|
+
return;
|
330
|
+
}
|
331
|
+
if ( !this.options.disabled && this.visible && $.ui.intersect( draggable, this, this.options.tolerance, event ) ) {
|
332
|
+
dropped = this._drop.call( this, event ) || dropped;
|
333
|
+
}
|
334
|
+
|
335
|
+
if ( !this.options.disabled && this.visible && this.accept.call( this.element[ 0 ], ( draggable.currentItem || draggable.element ) ) ) {
|
336
|
+
this.isout = true;
|
337
|
+
this.isover = false;
|
338
|
+
this._deactivate.call( this, event );
|
339
|
+
}
|
340
|
+
|
341
|
+
});
|
342
|
+
return dropped;
|
343
|
+
|
344
|
+
},
|
345
|
+
dragStart: function( draggable, event ) {
|
346
|
+
// Listen for scrolling so that if the dragging causes scrolling the position of the droppables can be recalculated (see #5003)
|
347
|
+
draggable.element.parentsUntil( "body" ).bind( "scroll.droppable", function() {
|
348
|
+
if ( !draggable.options.refreshPositions ) {
|
349
|
+
$.ui.ddmanager.prepareOffsets( draggable, event );
|
350
|
+
}
|
351
|
+
});
|
352
|
+
},
|
353
|
+
drag: function( draggable, event ) {
|
354
|
+
|
355
|
+
// If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
|
356
|
+
if ( draggable.options.refreshPositions ) {
|
357
|
+
$.ui.ddmanager.prepareOffsets( draggable, event );
|
358
|
+
}
|
359
|
+
|
360
|
+
// Run through all droppables and check their positions based on specific tolerance options
|
361
|
+
$.each( $.ui.ddmanager.droppables[ draggable.options.scope ] || [], function() {
|
362
|
+
|
363
|
+
if ( this.options.disabled || this.greedyChild || !this.visible ) {
|
364
|
+
return;
|
365
|
+
}
|
366
|
+
|
367
|
+
var parentInstance, scope, parent,
|
368
|
+
intersects = $.ui.intersect( draggable, this, this.options.tolerance, event ),
|
369
|
+
c = !intersects && this.isover ? "isout" : ( intersects && !this.isover ? "isover" : null );
|
370
|
+
if ( !c ) {
|
371
|
+
return;
|
372
|
+
}
|
373
|
+
|
374
|
+
if ( this.options.greedy ) {
|
375
|
+
// find droppable parents with same scope
|
376
|
+
scope = this.options.scope;
|
377
|
+
parent = this.element.parents( ":data(ui-droppable)" ).filter(function() {
|
378
|
+
return $( this ).droppable( "instance" ).options.scope === scope;
|
379
|
+
});
|
380
|
+
|
381
|
+
if ( parent.length ) {
|
382
|
+
parentInstance = $( parent[ 0 ] ).droppable( "instance" );
|
383
|
+
parentInstance.greedyChild = ( c === "isover" );
|
384
|
+
}
|
385
|
+
}
|
386
|
+
|
387
|
+
// we just moved into a greedy child
|
388
|
+
if ( parentInstance && c === "isover" ) {
|
389
|
+
parentInstance.isover = false;
|
390
|
+
parentInstance.isout = true;
|
391
|
+
parentInstance._out.call( parentInstance, event );
|
392
|
+
}
|
393
|
+
|
394
|
+
this[ c ] = true;
|
395
|
+
this[c === "isout" ? "isover" : "isout"] = false;
|
396
|
+
this[c === "isover" ? "_over" : "_out"].call( this, event );
|
397
|
+
|
398
|
+
// we just moved out of a greedy child
|
399
|
+
if ( parentInstance && c === "isout" ) {
|
400
|
+
parentInstance.isout = false;
|
401
|
+
parentInstance.isover = true;
|
402
|
+
parentInstance._over.call( parentInstance, event );
|
403
|
+
}
|
404
|
+
});
|
405
|
+
|
406
|
+
},
|
407
|
+
dragStop: function( draggable, event ) {
|
408
|
+
draggable.element.parentsUntil( "body" ).unbind( "scroll.droppable" );
|
409
|
+
// Call prepareOffsets one final time since IE does not fire return scroll events when overflow was caused by drag (see #5003)
|
410
|
+
if ( !draggable.options.refreshPositions ) {
|
411
|
+
$.ui.ddmanager.prepareOffsets( draggable, event );
|
412
|
+
}
|
413
|
+
}
|
414
|
+
};
|
415
|
+
|
416
|
+
return $.ui.droppable;
|
417
|
+
|
418
|
+
}));
|
@@ -1,26 +1,35 @@
|
|
1
|
-
//= require jquery
|
1
|
+
//= require jquery-ui/effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Blind 1.
|
4
|
+
* jQuery UI Effects Blind 1.11.3
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
11
11
|
* http://api.jqueryui.com/blind-effect/
|
12
|
-
*
|
13
|
-
* Depends:
|
14
|
-
* jquery.ui.effect.js
|
15
12
|
*/
|
16
|
-
(function(
|
13
|
+
(function( factory ) {
|
14
|
+
if ( typeof define === "function" && define.amd ) {
|
17
15
|
|
18
|
-
|
19
|
-
|
16
|
+
// AMD. Register as an anonymous module.
|
17
|
+
define([
|
18
|
+
"jquery",
|
19
|
+
"./effect"
|
20
|
+
], factory );
|
21
|
+
} else {
|
20
22
|
|
21
|
-
|
23
|
+
// Browser globals
|
24
|
+
factory( jQuery );
|
25
|
+
}
|
26
|
+
}(function( $ ) {
|
27
|
+
|
28
|
+
return $.effects.effect.blind = function( o, done ) {
|
22
29
|
// Create element
|
23
30
|
var el = $( this ),
|
31
|
+
rvertical = /up|down|vertical/,
|
32
|
+
rpositivemotion = /up|left|vertical|horizontal/,
|
24
33
|
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
|
25
34
|
mode = $.effects.setMode( el, o.mode || "hide" ),
|
26
35
|
direction = o.direction || "up",
|
@@ -59,7 +68,7 @@ $.effects.effect.blind = function( o, done ) {
|
|
59
68
|
// start at 0 if we are showing
|
60
69
|
if ( show ) {
|
61
70
|
wrapper.css( ref, 0 );
|
62
|
-
if ( !
|
71
|
+
if ( !motion ) {
|
63
72
|
wrapper.css( ref2, margin + distance );
|
64
73
|
}
|
65
74
|
}
|
@@ -78,7 +87,6 @@ $.effects.effect.blind = function( o, done ) {
|
|
78
87
|
done();
|
79
88
|
}
|
80
89
|
});
|
81
|
-
|
82
90
|
};
|
83
91
|
|
84
|
-
})
|
92
|
+
}));
|
@@ -1,21 +1,31 @@
|
|
1
|
-
//= require jquery
|
1
|
+
//= require jquery-ui/effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Bounce 1.
|
4
|
+
* jQuery UI Effects Bounce 1.11.3
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
11
11
|
* http://api.jqueryui.com/bounce-effect/
|
12
|
-
*
|
13
|
-
* Depends:
|
14
|
-
* jquery.ui.effect.js
|
15
12
|
*/
|
16
|
-
(function(
|
13
|
+
(function( factory ) {
|
14
|
+
if ( typeof define === "function" && define.amd ) {
|
15
|
+
|
16
|
+
// AMD. Register as an anonymous module.
|
17
|
+
define([
|
18
|
+
"jquery",
|
19
|
+
"./effect"
|
20
|
+
], factory );
|
21
|
+
} else {
|
22
|
+
|
23
|
+
// Browser globals
|
24
|
+
factory( jQuery );
|
25
|
+
}
|
26
|
+
}(function( $ ) {
|
17
27
|
|
18
|
-
$.effects.effect.bounce = function( o, done ) {
|
28
|
+
return $.effects.effect.bounce = function( o, done ) {
|
19
29
|
var el = $( this ),
|
20
30
|
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
|
21
31
|
|
@@ -112,4 +122,4 @@ $.effects.effect.bounce = function( o, done ) {
|
|
112
122
|
|
113
123
|
};
|
114
124
|
|
115
|
-
})
|
125
|
+
}));
|
@@ -1,21 +1,31 @@
|
|
1
|
-
//= require jquery
|
1
|
+
//= require jquery-ui/effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Clip 1.
|
4
|
+
* jQuery UI Effects Clip 1.11.3
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
11
11
|
* http://api.jqueryui.com/clip-effect/
|
12
|
-
*
|
13
|
-
* Depends:
|
14
|
-
* jquery.ui.effect.js
|
15
12
|
*/
|
16
|
-
(function(
|
13
|
+
(function( factory ) {
|
14
|
+
if ( typeof define === "function" && define.amd ) {
|
15
|
+
|
16
|
+
// AMD. Register as an anonymous module.
|
17
|
+
define([
|
18
|
+
"jquery",
|
19
|
+
"./effect"
|
20
|
+
], factory );
|
21
|
+
} else {
|
22
|
+
|
23
|
+
// Browser globals
|
24
|
+
factory( jQuery );
|
25
|
+
}
|
26
|
+
}(function( $ ) {
|
17
27
|
|
18
|
-
$.effects.effect.clip = function( o, done ) {
|
28
|
+
return $.effects.effect.clip = function( o, done ) {
|
19
29
|
// Create element
|
20
30
|
var el = $( this ),
|
21
31
|
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
|
@@ -66,4 +76,4 @@ $.effects.effect.clip = function( o, done ) {
|
|
66
76
|
|
67
77
|
};
|
68
78
|
|
69
|
-
})
|
79
|
+
}));
|
@@ -1,21 +1,31 @@
|
|
1
|
-
//= require jquery
|
1
|
+
//= require jquery-ui/effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Drop 1.
|
4
|
+
* jQuery UI Effects Drop 1.11.3
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
11
11
|
* http://api.jqueryui.com/drop-effect/
|
12
|
-
*
|
13
|
-
* Depends:
|
14
|
-
* jquery.ui.effect.js
|
15
12
|
*/
|
16
|
-
(function(
|
13
|
+
(function( factory ) {
|
14
|
+
if ( typeof define === "function" && define.amd ) {
|
15
|
+
|
16
|
+
// AMD. Register as an anonymous module.
|
17
|
+
define([
|
18
|
+
"jquery",
|
19
|
+
"./effect"
|
20
|
+
], factory );
|
21
|
+
} else {
|
22
|
+
|
23
|
+
// Browser globals
|
24
|
+
factory( jQuery );
|
25
|
+
}
|
26
|
+
}(function( $ ) {
|
17
27
|
|
18
|
-
$.effects.effect.drop = function( o, done ) {
|
28
|
+
return $.effects.effect.drop = function( o, done ) {
|
19
29
|
|
20
30
|
var el = $( this ),
|
21
31
|
props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
|
@@ -34,7 +44,7 @@ $.effects.effect.drop = function( o, done ) {
|
|
34
44
|
el.show();
|
35
45
|
$.effects.createWrapper( el );
|
36
46
|
|
37
|
-
distance = o.distance || el[ ref === "top" ? "outerHeight": "outerWidth" ]( true ) / 2;
|
47
|
+
distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ) / 2;
|
38
48
|
|
39
49
|
if ( show ) {
|
40
50
|
el
|
@@ -64,4 +74,4 @@ $.effects.effect.drop = function( o, done ) {
|
|
64
74
|
});
|
65
75
|
};
|
66
76
|
|
67
|
-
})
|
77
|
+
}));
|
@@ -1,21 +1,31 @@
|
|
1
|
-
//= require jquery
|
1
|
+
//= require jquery-ui/effect
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Explode 1.
|
4
|
+
* jQuery UI Effects Explode 1.11.3
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
11
11
|
* http://api.jqueryui.com/explode-effect/
|
12
|
-
*
|
13
|
-
* Depends:
|
14
|
-
* jquery.ui.effect.js
|
15
12
|
*/
|
16
|
-
(function(
|
13
|
+
(function( factory ) {
|
14
|
+
if ( typeof define === "function" && define.amd ) {
|
15
|
+
|
16
|
+
// AMD. Register as an anonymous module.
|
17
|
+
define([
|
18
|
+
"jquery",
|
19
|
+
"./effect"
|
20
|
+
], factory );
|
21
|
+
} else {
|
22
|
+
|
23
|
+
// Browser globals
|
24
|
+
factory( jQuery );
|
25
|
+
}
|
26
|
+
}(function( $ ) {
|
17
27
|
|
18
|
-
$.effects.effect.explode = function( o, done ) {
|
28
|
+
return $.effects.effect.explode = function( o, done ) {
|
19
29
|
|
20
30
|
var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3,
|
21
31
|
cells = rows,
|
@@ -43,11 +53,11 @@ $.effects.effect.explode = function( o, done ) {
|
|
43
53
|
}
|
44
54
|
|
45
55
|
// clone the element for each row and cell.
|
46
|
-
for( i = 0; i < rows ; i++ ) { // ===>
|
56
|
+
for ( i = 0; i < rows ; i++ ) { // ===>
|
47
57
|
top = offset.top + i * height;
|
48
58
|
my = i - ( rows - 1 ) / 2 ;
|
49
59
|
|
50
|
-
for( j = 0; j < cells ; j++ ) { // |||
|
60
|
+
for ( j = 0; j < cells ; j++ ) { // |||
|
51
61
|
left = offset.left + j * width;
|
52
62
|
mx = j - ( cells - 1 ) / 2 ;
|
53
63
|
|
@@ -96,4 +106,4 @@ $.effects.effect.explode = function( o, done ) {
|
|
96
106
|
}
|
97
107
|
};
|
98
108
|
|
99
|
-
})
|
109
|
+
}));
|