sn-jquery-ui-rails 6.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.gitmodules +3 -0
  4. data/.travis.yml +2 -0
  5. data/Gemfile +3 -0
  6. data/History.md +168 -0
  7. data/License.txt +2 -0
  8. data/README.md +311 -0
  9. data/Rakefile +258 -0
  10. data/VERSIONS.md +39 -0
  11. data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  12. data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
  13. data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
  14. data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
  15. data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
  16. data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
  17. data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
  18. data/app/assets/javascripts/jquery-ui/core.js +15 -0
  19. data/app/assets/javascripts/jquery-ui/data.js +41 -0
  20. data/app/assets/javascripts/jquery-ui/disable-selection.js +48 -0
  21. data/app/assets/javascripts/jquery-ui/effect.all.js +15 -0
  22. data/app/assets/javascripts/jquery-ui/effect.js +1637 -0
  23. data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +73 -0
  24. data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +113 -0
  25. data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +68 -0
  26. data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +72 -0
  27. data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +114 -0
  28. data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +50 -0
  29. data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +92 -0
  30. data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +60 -0
  31. data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +46 -0
  32. data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +67 -0
  33. data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +60 -0
  34. data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +77 -0
  35. data/app/assets/javascripts/jquery-ui/effects/effect-size.js +194 -0
  36. data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +79 -0
  37. data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +43 -0
  38. data/app/assets/javascripts/jquery-ui/escape-selector.js +23 -0
  39. data/app/assets/javascripts/jquery-ui/focusable.js +86 -0
  40. data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +80 -0
  41. data/app/assets/javascripts/jquery-ui/form.js +22 -0
  42. data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +37 -0
  43. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +39 -0
  44. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +39 -0
  45. data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +37 -0
  46. data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +37 -0
  47. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +38 -0
  48. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +37 -0
  49. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +37 -0
  50. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +37 -0
  51. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +45 -0
  52. data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +37 -0
  53. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +37 -0
  54. data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +37 -0
  55. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +37 -0
  56. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +37 -0
  57. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +37 -0
  58. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +37 -0
  59. data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +37 -0
  60. data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +45 -0
  61. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +36 -0
  62. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +73 -0
  63. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +37 -0
  64. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +45 -0
  65. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +37 -0
  66. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +37 -0
  67. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +39 -0
  68. data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +37 -0
  69. data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +37 -0
  70. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +37 -0
  71. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +37 -0
  72. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +36 -0
  73. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +37 -0
  74. data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +37 -0
  75. data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +45 -0
  76. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +37 -0
  77. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +37 -0
  78. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +37 -0
  79. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +48 -0
  80. data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +37 -0
  81. data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +37 -0
  82. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +37 -0
  83. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +38 -0
  84. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +45 -0
  85. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +45 -0
  86. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +45 -0
  87. data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +37 -0
  88. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +37 -0
  89. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +37 -0
  90. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +49 -0
  91. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +37 -0
  92. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +37 -0
  93. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +49 -0
  94. data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +50 -0
  95. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +37 -0
  96. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +45 -0
  97. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +44 -0
  98. data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +61 -0
  99. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +40 -0
  100. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +37 -0
  101. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +37 -0
  102. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +38 -0
  103. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +37 -0
  104. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +37 -0
  105. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +37 -0
  106. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +37 -0
  107. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +53 -0
  108. data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +37 -0
  109. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +37 -0
  110. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +37 -0
  111. data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +38 -0
  112. data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +37 -0
  113. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +37 -0
  114. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +37 -0
  115. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +37 -0
  116. data/app/assets/javascripts/jquery-ui/ie.js +17 -0
  117. data/app/assets/javascripts/jquery-ui/jquery-1-7.js +91 -0
  118. data/app/assets/javascripts/jquery-ui/keycode.js +47 -0
  119. data/app/assets/javascripts/jquery-ui/labels.js +65 -0
  120. data/app/assets/javascripts/jquery-ui/plugin.js +46 -0
  121. data/app/assets/javascripts/jquery-ui/position.js +500 -0
  122. data/app/assets/javascripts/jquery-ui/safe-active-element.js +42 -0
  123. data/app/assets/javascripts/jquery-ui/safe-blur.js +23 -0
  124. data/app/assets/javascripts/jquery-ui/scroll-parent.js +47 -0
  125. data/app/assets/javascripts/jquery-ui/tabbable.js +38 -0
  126. data/app/assets/javascripts/jquery-ui/unique-id.js +51 -0
  127. data/app/assets/javascripts/jquery-ui/version.js +17 -0
  128. data/app/assets/javascripts/jquery-ui/widget.js +735 -0
  129. data/app/assets/javascripts/jquery-ui/widgets/accordion.js +618 -0
  130. data/app/assets/javascripts/jquery-ui/widgets/autocomplete.js +689 -0
  131. data/app/assets/javascripts/jquery-ui/widgets/button.js +391 -0
  132. data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +291 -0
  133. data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +300 -0
  134. data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2123 -0
  135. data/app/assets/javascripts/jquery-ui/widgets/dialog.js +954 -0
  136. data/app/assets/javascripts/jquery-ui/widgets/draggable.js +1259 -0
  137. data/app/assets/javascripts/jquery-ui/widgets/droppable.js +502 -0
  138. data/app/assets/javascripts/jquery-ui/widgets/menu.js +680 -0
  139. data/app/assets/javascripts/jquery-ui/widgets/mouse.js +230 -0
  140. data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +181 -0
  141. data/app/assets/javascripts/jquery-ui/widgets/resizable.js +1207 -0
  142. data/app/assets/javascripts/jquery-ui/widgets/selectable.js +314 -0
  143. data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +697 -0
  144. data/app/assets/javascripts/jquery-ui/widgets/slider.js +757 -0
  145. data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1561 -0
  146. data/app/assets/javascripts/jquery-ui/widgets/spinner.js +581 -0
  147. data/app/assets/javascripts/jquery-ui/widgets/tabs.js +931 -0
  148. data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +526 -0
  149. data/app/assets/javascripts/jquery-ui.js +56 -0
  150. data/app/assets/stylesheets/jquery-ui/accordion.css +26 -0
  151. data/app/assets/stylesheets/jquery-ui/all.css +14 -0
  152. data/app/assets/stylesheets/jquery-ui/autocomplete.css +19 -0
  153. data/app/assets/stylesheets/jquery-ui/base.css +32 -0
  154. data/app/assets/stylesheets/jquery-ui/button.css +85 -0
  155. data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
  156. data/app/assets/stylesheets/jquery-ui/controlgroup.css +68 -0
  157. data/app/assets/stylesheets/jquery-ui/core.css +100 -0
  158. data/app/assets/stylesheets/jquery-ui/datepicker.css +188 -0
  159. data/app/assets/stylesheets/jquery-ui/dialog.css +104 -0
  160. data/app/assets/stylesheets/jquery-ui/draggable.css +15 -0
  161. data/app/assets/stylesheets/jquery-ui/menu.css +67 -0
  162. data/app/assets/stylesheets/jquery-ui/progressbar.css +31 -0
  163. data/app/assets/stylesheets/jquery-ui/resizable.css +81 -0
  164. data/app/assets/stylesheets/jquery-ui/selectable.css +20 -0
  165. data/app/assets/stylesheets/jquery-ui/selectmenu.css +53 -0
  166. data/app/assets/stylesheets/jquery-ui/slider.css +78 -0
  167. data/app/assets/stylesheets/jquery-ui/sortable.css +15 -0
  168. data/app/assets/stylesheets/jquery-ui/spinner.css +55 -0
  169. data/app/assets/stylesheets/jquery-ui/tabs.css +54 -0
  170. data/app/assets/stylesheets/jquery-ui/theme.css.erb +453 -0
  171. data/app/assets/stylesheets/jquery-ui/tooltip.css +22 -0
  172. data/app/assets/stylesheets/jquery-ui.css +1 -0
  173. data/lib/jquery/ui/rails/engine.rb +8 -0
  174. data/lib/jquery/ui/rails/version.rb +8 -0
  175. data/lib/jquery/ui/rails.rb +2 -0
  176. data/lib/jquery-ui-rails.rb +1 -0
  177. metadata +248 -0
@@ -0,0 +1,314 @@
1
+ //= require jquery-ui/widgets/mouse
2
+ //= require jquery-ui/version
3
+ //= require jquery-ui/widget
4
+
5
+ /*!
6
+ * jQuery UI Selectable 1.12.1
7
+ * http://jqueryui.com
8
+ *
9
+ * Copyright jQuery Foundation and other contributors
10
+ * Released under the MIT license.
11
+ * http://jquery.org/license
12
+ */
13
+
14
+ //>>label: Selectable
15
+ //>>group: Interactions
16
+ //>>description: Allows groups of elements to be selected with the mouse.
17
+ //>>docs: http://api.jqueryui.com/selectable/
18
+ //>>demos: http://jqueryui.com/selectable/
19
+ //>>css.structure: ../../themes/base/selectable.css
20
+
21
+ ( function( factory ) {
22
+ if ( typeof define === "function" && define.amd ) {
23
+
24
+ // AMD. Register as an anonymous module.
25
+ define( [
26
+ "jquery",
27
+ "./mouse",
28
+ "../version",
29
+ "../widget"
30
+ ], factory );
31
+ } else {
32
+
33
+ // Browser globals
34
+ factory( jQuery );
35
+ }
36
+ }( function( $ ) {
37
+
38
+ return $.widget( "ui.selectable", $.ui.mouse, {
39
+ version: "1.12.1",
40
+ options: {
41
+ appendTo: "body",
42
+ autoRefresh: true,
43
+ distance: 0,
44
+ filter: "*",
45
+ tolerance: "touch",
46
+
47
+ // Callbacks
48
+ selected: null,
49
+ selecting: null,
50
+ start: null,
51
+ stop: null,
52
+ unselected: null,
53
+ unselecting: null
54
+ },
55
+ _create: function() {
56
+ var that = this;
57
+
58
+ this._addClass( "ui-selectable" );
59
+
60
+ this.dragged = false;
61
+
62
+ // Cache selectee children based on filter
63
+ this.refresh = function() {
64
+ that.elementPos = $( that.element[ 0 ] ).offset();
65
+ that.selectees = $( that.options.filter, that.element[ 0 ] );
66
+ that._addClass( that.selectees, "ui-selectee" );
67
+ that.selectees.each( function() {
68
+ var $this = $( this ),
69
+ selecteeOffset = $this.offset(),
70
+ pos = {
71
+ left: selecteeOffset.left - that.elementPos.left,
72
+ top: selecteeOffset.top - that.elementPos.top
73
+ };
74
+ $.data( this, "selectable-item", {
75
+ element: this,
76
+ $element: $this,
77
+ left: pos.left,
78
+ top: pos.top,
79
+ right: pos.left + $this.outerWidth(),
80
+ bottom: pos.top + $this.outerHeight(),
81
+ startselected: false,
82
+ selected: $this.hasClass( "ui-selected" ),
83
+ selecting: $this.hasClass( "ui-selecting" ),
84
+ unselecting: $this.hasClass( "ui-unselecting" )
85
+ } );
86
+ } );
87
+ };
88
+ this.refresh();
89
+
90
+ this._mouseInit();
91
+
92
+ this.helper = $( "<div>" );
93
+ this._addClass( this.helper, "ui-selectable-helper" );
94
+ },
95
+
96
+ _destroy: function() {
97
+ this.selectees.removeData( "selectable-item" );
98
+ this._mouseDestroy();
99
+ },
100
+
101
+ _mouseStart: function( event ) {
102
+ var that = this,
103
+ options = this.options;
104
+
105
+ this.opos = [ event.pageX, event.pageY ];
106
+ this.elementPos = $( this.element[ 0 ] ).offset();
107
+
108
+ if ( this.options.disabled ) {
109
+ return;
110
+ }
111
+
112
+ this.selectees = $( options.filter, this.element[ 0 ] );
113
+
114
+ this._trigger( "start", event );
115
+
116
+ $( options.appendTo ).append( this.helper );
117
+
118
+ // position helper (lasso)
119
+ this.helper.css( {
120
+ "left": event.pageX,
121
+ "top": event.pageY,
122
+ "width": 0,
123
+ "height": 0
124
+ } );
125
+
126
+ if ( options.autoRefresh ) {
127
+ this.refresh();
128
+ }
129
+
130
+ this.selectees.filter( ".ui-selected" ).each( function() {
131
+ var selectee = $.data( this, "selectable-item" );
132
+ selectee.startselected = true;
133
+ if ( !event.metaKey && !event.ctrlKey ) {
134
+ that._removeClass( selectee.$element, "ui-selected" );
135
+ selectee.selected = false;
136
+ that._addClass( selectee.$element, "ui-unselecting" );
137
+ selectee.unselecting = true;
138
+
139
+ // selectable UNSELECTING callback
140
+ that._trigger( "unselecting", event, {
141
+ unselecting: selectee.element
142
+ } );
143
+ }
144
+ } );
145
+
146
+ $( event.target ).parents().addBack().each( function() {
147
+ var doSelect,
148
+ selectee = $.data( this, "selectable-item" );
149
+ if ( selectee ) {
150
+ doSelect = ( !event.metaKey && !event.ctrlKey ) ||
151
+ !selectee.$element.hasClass( "ui-selected" );
152
+ that._removeClass( selectee.$element, doSelect ? "ui-unselecting" : "ui-selected" )
153
+ ._addClass( selectee.$element, doSelect ? "ui-selecting" : "ui-unselecting" );
154
+ selectee.unselecting = !doSelect;
155
+ selectee.selecting = doSelect;
156
+ selectee.selected = doSelect;
157
+
158
+ // selectable (UN)SELECTING callback
159
+ if ( doSelect ) {
160
+ that._trigger( "selecting", event, {
161
+ selecting: selectee.element
162
+ } );
163
+ } else {
164
+ that._trigger( "unselecting", event, {
165
+ unselecting: selectee.element
166
+ } );
167
+ }
168
+ return false;
169
+ }
170
+ } );
171
+
172
+ },
173
+
174
+ _mouseDrag: function( event ) {
175
+
176
+ this.dragged = true;
177
+
178
+ if ( this.options.disabled ) {
179
+ return;
180
+ }
181
+
182
+ var tmp,
183
+ that = this,
184
+ options = this.options,
185
+ x1 = this.opos[ 0 ],
186
+ y1 = this.opos[ 1 ],
187
+ x2 = event.pageX,
188
+ y2 = event.pageY;
189
+
190
+ if ( x1 > x2 ) { tmp = x2; x2 = x1; x1 = tmp; }
191
+ if ( y1 > y2 ) { tmp = y2; y2 = y1; y1 = tmp; }
192
+ this.helper.css( { left: x1, top: y1, width: x2 - x1, height: y2 - y1 } );
193
+
194
+ this.selectees.each( function() {
195
+ var selectee = $.data( this, "selectable-item" ),
196
+ hit = false,
197
+ offset = {};
198
+
199
+ //prevent helper from being selected if appendTo: selectable
200
+ if ( !selectee || selectee.element === that.element[ 0 ] ) {
201
+ return;
202
+ }
203
+
204
+ offset.left = selectee.left + that.elementPos.left;
205
+ offset.right = selectee.right + that.elementPos.left;
206
+ offset.top = selectee.top + that.elementPos.top;
207
+ offset.bottom = selectee.bottom + that.elementPos.top;
208
+
209
+ if ( options.tolerance === "touch" ) {
210
+ hit = ( !( offset.left > x2 || offset.right < x1 || offset.top > y2 ||
211
+ offset.bottom < y1 ) );
212
+ } else if ( options.tolerance === "fit" ) {
213
+ hit = ( offset.left > x1 && offset.right < x2 && offset.top > y1 &&
214
+ offset.bottom < y2 );
215
+ }
216
+
217
+ if ( hit ) {
218
+
219
+ // SELECT
220
+ if ( selectee.selected ) {
221
+ that._removeClass( selectee.$element, "ui-selected" );
222
+ selectee.selected = false;
223
+ }
224
+ if ( selectee.unselecting ) {
225
+ that._removeClass( selectee.$element, "ui-unselecting" );
226
+ selectee.unselecting = false;
227
+ }
228
+ if ( !selectee.selecting ) {
229
+ that._addClass( selectee.$element, "ui-selecting" );
230
+ selectee.selecting = true;
231
+
232
+ // selectable SELECTING callback
233
+ that._trigger( "selecting", event, {
234
+ selecting: selectee.element
235
+ } );
236
+ }
237
+ } else {
238
+
239
+ // UNSELECT
240
+ if ( selectee.selecting ) {
241
+ if ( ( event.metaKey || event.ctrlKey ) && selectee.startselected ) {
242
+ that._removeClass( selectee.$element, "ui-selecting" );
243
+ selectee.selecting = false;
244
+ that._addClass( selectee.$element, "ui-selected" );
245
+ selectee.selected = true;
246
+ } else {
247
+ that._removeClass( selectee.$element, "ui-selecting" );
248
+ selectee.selecting = false;
249
+ if ( selectee.startselected ) {
250
+ that._addClass( selectee.$element, "ui-unselecting" );
251
+ selectee.unselecting = true;
252
+ }
253
+
254
+ // selectable UNSELECTING callback
255
+ that._trigger( "unselecting", event, {
256
+ unselecting: selectee.element
257
+ } );
258
+ }
259
+ }
260
+ if ( selectee.selected ) {
261
+ if ( !event.metaKey && !event.ctrlKey && !selectee.startselected ) {
262
+ that._removeClass( selectee.$element, "ui-selected" );
263
+ selectee.selected = false;
264
+
265
+ that._addClass( selectee.$element, "ui-unselecting" );
266
+ selectee.unselecting = true;
267
+
268
+ // selectable UNSELECTING callback
269
+ that._trigger( "unselecting", event, {
270
+ unselecting: selectee.element
271
+ } );
272
+ }
273
+ }
274
+ }
275
+ } );
276
+
277
+ return false;
278
+ },
279
+
280
+ _mouseStop: function( event ) {
281
+ var that = this;
282
+
283
+ this.dragged = false;
284
+
285
+ $( ".ui-unselecting", this.element[ 0 ] ).each( function() {
286
+ var selectee = $.data( this, "selectable-item" );
287
+ that._removeClass( selectee.$element, "ui-unselecting" );
288
+ selectee.unselecting = false;
289
+ selectee.startselected = false;
290
+ that._trigger( "unselected", event, {
291
+ unselected: selectee.element
292
+ } );
293
+ } );
294
+ $( ".ui-selecting", this.element[ 0 ] ).each( function() {
295
+ var selectee = $.data( this, "selectable-item" );
296
+ that._removeClass( selectee.$element, "ui-selecting" )
297
+ ._addClass( selectee.$element, "ui-selected" );
298
+ selectee.selecting = false;
299
+ selectee.selected = true;
300
+ selectee.startselected = true;
301
+ that._trigger( "selected", event, {
302
+ selected: selectee.element
303
+ } );
304
+ } );
305
+ this._trigger( "stop", event );
306
+
307
+ this.helper.remove();
308
+
309
+ return false;
310
+ }
311
+
312
+ } );
313
+
314
+ } ) );