File tree 3 files changed +17
-12
lines changed
3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 1
1
/node_modules
2
2
.htaccess
3
+ .idea
Original file line number Diff line number Diff line change @@ -148,6 +148,10 @@ if (typeof jQuery === 'undefined') {
148
148
149
149
// Initialize events
150
150
self . events ( ) ;
151
+
152
+ if ( typeof self . callbacks . afterInit == 'function' && ! silent ) {
153
+ self . callbacks . afterInit ( ) ;
154
+ }
151
155
} ,
152
156
153
157
events : function ( ) {
@@ -223,7 +227,7 @@ if (typeof jQuery === 'undefined') {
223
227
self . $left . on ( 'keypress' , function ( e ) {
224
228
if ( e . keyCode === 13 ) {
225
229
e . preventDefault ( ) ;
226
-
230
+
227
231
var $options = self . $left . find ( 'option:selected' ) ;
228
232
229
233
if ( $options . length ) {
@@ -445,7 +449,7 @@ if (typeof jQuery === 'undefined') {
445
449
if ( ! $destinationGroup . length ) {
446
450
$destinationGroup = $sourceGroup . clone ( true ) ;
447
451
$destinationGroup . empty ( ) ;
448
-
452
+
449
453
$destination . move ( $destinationGroup ) ;
450
454
}
451
455
@@ -559,6 +563,15 @@ if (typeof jQuery === 'undefined') {
559
563
} ) ;
560
564
} ,
561
565
566
+ /** will be executed after initialize plugin
567
+ *
568
+ * @method afterInit
569
+ *
570
+ * @default true
571
+ * @return {boolean }
572
+ **/
573
+ afterInit : function ( ) { return true ; } ,
574
+
562
575
/** will be executed each time before moving option[s] to right
563
576
*
564
577
* IMPORTANT : this method must return boolean value
You can’t perform that action at this time.
0 commit comments