|
@@ -372,7 +372,7 @@
|
|
self.cancelling = false;
|
|
self.cancelling = false;
|
|
},
|
|
},
|
|
_init: function (options) {
|
|
_init: function (options) {
|
|
- var self = this, $el = self.$element, $cont, t;
|
|
|
|
|
|
+ var self = this, $el = self.$element, $cont, t, tmp;
|
|
self.options = options;
|
|
self.options = options;
|
|
$.each(options, function (key, value) {
|
|
$.each(options, function (key, value) {
|
|
switch (key) {
|
|
switch (key) {
|
|
@@ -397,6 +397,11 @@
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ if (self.rtl) { // swap buttons for rtl
|
|
|
|
+ tmp = self.previewZoomButtonIcons.prev;
|
|
|
|
+ self.previewZoomButtonIcons.prev = self.previewZoomButtonIcons.next;
|
|
|
|
+ self.previewZoomButtonIcons.next = tmp;
|
|
|
|
+ }
|
|
self._cleanup();
|
|
self._cleanup();
|
|
self.$form = $el.closest('form');
|
|
self.$form = $el.closest('form');
|
|
self._initTemplateDefaults();
|
|
self._initTemplateDefaults();
|