|
@@ -11882,7 +11882,6 @@ define('select2/data/select',[
|
|
|
}
|
|
|
|
|
|
item = $.extend({}, {
|
|
|
- id: '',
|
|
|
text: ''
|
|
|
}, item);
|
|
|
|
|
@@ -12220,6 +12219,9 @@ define('select2/dropdown',[
|
|
|
], function (Utils) {
|
|
|
function Dropdown ($element, options) {
|
|
|
this.$element = $element;
|
|
|
+ this.options = options;
|
|
|
+
|
|
|
+ Dropdown.__super__.constructor.call(this);
|
|
|
}
|
|
|
|
|
|
Utils.Extend(Dropdown, Utils.Observable);
|
|
@@ -12231,6 +12233,8 @@ define('select2/dropdown',[
|
|
|
'</span>'
|
|
|
);
|
|
|
|
|
|
+ $dropdown.attr('dir', this.options.get('dir'));
|
|
|
+
|
|
|
this.$dropdown = $dropdown;
|
|
|
|
|
|
return $dropdown;
|
|
@@ -12980,6 +12984,16 @@ define('select2/options',[
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (this.options.dir == null) {
|
|
|
+ if ($e.prop('dir')) {
|
|
|
+ this.options.dir = $e.prop('dir');
|
|
|
+ } else if ($e.closest('[dir]').prop('dir')) {
|
|
|
+ this.options.dir = $e.closest('[dir]').prop('dir');
|
|
|
+ } else {
|
|
|
+ this.options.dir = 'ltr';
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$e.prop('disabled', this.options.disabled);
|
|
|
$e.prop('multiple', this.options.multiple);
|
|
|
|
|
@@ -13475,6 +13489,8 @@ define('select2/core',[
|
|
|
'</span>'
|
|
|
);
|
|
|
|
|
|
+ $container.attr('dir', this.options.get('dir'));
|
|
|
+
|
|
|
this.$container = $container;
|
|
|
|
|
|
this.$container.addClass('select2-container--' + this.options.get('theme'));
|