Skip to content

Commit

Permalink
version 4.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenCoderX committed Jun 28, 2020
1 parent 6917b24 commit f9b2de0
Show file tree
Hide file tree
Showing 62 changed files with 64 additions and 98 deletions.
2 changes: 1 addition & 1 deletion lib/select2-rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Select2
module Rails
VERSION = '4.0.6'
VERSION = '4.0.7'
end
end
21 changes: 2 additions & 19 deletions vendor/assets/javascripts/select2-full.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Select2 4.0.6
* Select2 4.0.7
* https://select2.github.io
*
* Released under the MIT license
Expand Down Expand Up @@ -4573,7 +4573,7 @@ S2.define('select2/dropdown/closeOnSelect',[
var originalEvent = evt.originalEvent;

// Don't close if the control key is being held
if (originalEvent && originalEvent.ctrlKey) {
if (originalEvent && (originalEvent.ctrlKey || originalEvent.metaKey)) {
return;
}

Expand Down Expand Up @@ -5457,23 +5457,6 @@ S2.define('select2/core',[

Select2.prototype._registerEvents = function () {
var self = this;

this.on('focus', function () {
self.$container.addClass('select2-container--focus');

if (!self.$container.hasClass('select2-container--disabled') &&
!self.isOpen()) {
if (self.options.get('multiple')) {
window.setTimeout(function () {
self.open();
},
self.options.get('ajax') ? 300 : 100);
}
else {
self.open();
}
}
});

this.on('open', function () {
self.$container.addClass('select2-container--open');
Expand Down
21 changes: 2 additions & 19 deletions vendor/assets/javascripts/select2.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Select2 4.0.6
* Select2 4.0.7
* https://select2.github.io
*
* Released under the MIT license
Expand Down Expand Up @@ -4573,7 +4573,7 @@ S2.define('select2/dropdown/closeOnSelect',[
var originalEvent = evt.originalEvent;

// Don't close if the control key is being held
if (originalEvent && originalEvent.ctrlKey) {
if (originalEvent && (originalEvent.ctrlKey || originalEvent.metaKey)) {
return;
}

Expand Down Expand Up @@ -5457,23 +5457,6 @@ S2.define('select2/core',[

Select2.prototype._registerEvents = function () {
var self = this;

this.on('focus', function () {
self.$container.addClass('select2-container--focus');

if (!self.$container.hasClass('select2-container--disabled') &&
!self.isOpen()) {
if (self.options.get('multiple')) {
window.setTimeout(function () {
self.open();
},
self.options.get('ajax') ? 300 : 100);
}
else {
self.open();
}
}
});

this.on('open', function () {
self.$container.addClass('select2-container--open');
Expand Down
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_af.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_ar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_az.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_bg.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_bn.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_bs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_ca.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_cs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_da.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_de.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_dsb.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_el.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_en.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_et.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/assets/javascripts/select2_locale_eu.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f9b2de0

Please sign in to comment.