Commit 0af709b9 authored by Julia Radzhabova's avatar Julia Radzhabova

[DE][PE][SSE] Mirgate to jquery 3.2.1

parent 82f87770
...@@ -487,12 +487,12 @@ define([ ...@@ -487,12 +487,12 @@ define([
this.caption = caption; this.caption = caption;
if (this.rendered) { if (this.rendered) {
var captionNode = this.cmpEl.find('button:first > .caption').andSelf().filter('button > .caption'); var captionNode = this.cmpEl.find('button:first > .caption').addBack().filter('button > .caption');
if (captionNode.length > 0) { if (captionNode.length > 0) {
captionNode.text(caption); captionNode.text(caption);
} else { } else {
this.cmpEl.find('button:first').andSelf().filter('button').text(caption); this.cmpEl.find('button:first').addBack().filter('button').text(caption);
} }
} }
} }
......
...@@ -297,7 +297,7 @@ define([ ...@@ -297,7 +297,7 @@ define([
if (_.isUndefined(this.scroller) && this.allowScrollbar) { if (_.isUndefined(this.scroller) && this.allowScrollbar) {
this.scroller = new Common.UI.Scroller({ this.scroller = new Common.UI.Scroller({
el: $(this.el).find('.inner').andSelf().filter('.inner'), el: $(this.el).find('.inner').addBack().filter('.inner'),
useKeyboard: this.enableKeyEvents && !this.handleSelect, useKeyboard: this.enableKeyEvents && !this.handleSelect,
minScrollbarLength : 40, minScrollbarLength : 40,
wheelSpeed: 10 wheelSpeed: 10
...@@ -394,7 +394,7 @@ define([ ...@@ -394,7 +394,7 @@ define([
}); });
if (view) { if (view) {
var innerEl = $(this.el).find('.inner').andSelf().filter('.inner'); var innerEl = $(this.el).find('.inner').addBack().filter('.inner');
if (this.groups && this.groups.length > 0) { if (this.groups && this.groups.length > 0) {
var group = this.groups.findWhere({id: record.get('group')}); var group = this.groups.findWhere({id: record.get('group')});
...@@ -452,7 +452,7 @@ define([ ...@@ -452,7 +452,7 @@ define([
} }
if (this.store.length < 1 && this.emptyText.length > 0) if (this.store.length < 1 && this.emptyText.length > 0)
$(this.el).find('.inner').andSelf().filter('.inner').append('<table cellpadding="10" class="empty-text"><tr><td>' + this.emptyText + '</td></tr></table>'); $(this.el).find('.inner').addBack().filter('.inner').append('<table cellpadding="10" class="empty-text"><tr><td>' + this.emptyText + '</td></tr></table>');
_.each(this.dataViewItems, function(item) { _.each(this.dataViewItems, function(item) {
this.stopListening(item); this.stopListening(item);
...@@ -464,7 +464,7 @@ define([ ...@@ -464,7 +464,7 @@ define([
if (this.allowScrollbar) { if (this.allowScrollbar) {
this.scroller = new Common.UI.Scroller({ this.scroller = new Common.UI.Scroller({
el: $(this.el).find('.inner').andSelf().filter('.inner'), el: $(this.el).find('.inner').addBack().filter('.inner'),
useKeyboard: this.enableKeyEvents && !this.handleSelect, useKeyboard: this.enableKeyEvents && !this.handleSelect,
minScrollbarLength : 40, minScrollbarLength : 40,
wheelSpeed: 10 wheelSpeed: 10
...@@ -487,7 +487,7 @@ define([ ...@@ -487,7 +487,7 @@ define([
view.stopListening(); view.stopListening();
if (this.store.length < 1 && this.emptyText.length > 0) { if (this.store.length < 1 && this.emptyText.length > 0) {
var el = $(this.el).find('.inner').andSelf().filter('.inner'); var el = $(this.el).find('.inner').addBack().filter('.inner');
if ( el.find('.empty-text').length<=0 ) if ( el.find('.empty-text').length<=0 )
el.append('<table cellpadding="10" class="empty-text"><tr><td>' + this.emptyText + '</td></tr></table>'); el.append('<table cellpadding="10" class="empty-text"><tr><td>' + this.emptyText + '</td></tr></table>');
} }
...@@ -653,7 +653,7 @@ define([ ...@@ -653,7 +653,7 @@ define([
attachKeyEvents: function() { attachKeyEvents: function() {
if (this.enableKeyEvents && this.handleSelect) { if (this.enableKeyEvents && this.handleSelect) {
var el = $(this.el).find('.inner').andSelf().filter('.inner'); var el = $(this.el).find('.inner').addBack().filter('.inner');
el.addClass('canfocused'); el.addClass('canfocused');
el.attr('tabindex', '0'); el.attr('tabindex', '0');
el.on((this.parentMenu && this.useBSKeydown) ? 'dataview:keydown' : 'keydown', _.bind(this.onKeyDown, this)); el.on((this.parentMenu && this.useBSKeydown) ? 'dataview:keydown' : 'keydown', _.bind(this.onKeyDown, this));
...@@ -673,7 +673,7 @@ define([ ...@@ -673,7 +673,7 @@ define([
setDisabled: function(disabled) { setDisabled: function(disabled) {
this.disabled = disabled; this.disabled = disabled;
$(this.el).find('.inner').andSelf().filter('.inner').toggleClass('disabled', disabled); $(this.el).find('.inner').addBack().filter('.inner').toggleClass('disabled', disabled);
}, },
isDisabled: function() { isDisabled: function() {
...@@ -688,7 +688,7 @@ define([ ...@@ -688,7 +688,7 @@ define([
var menuRoot = (this.parentMenu.cmpEl.attr('role') === 'menu') var menuRoot = (this.parentMenu.cmpEl.attr('role') === 'menu')
? this.parentMenu.cmpEl ? this.parentMenu.cmpEl
: this.parentMenu.cmpEl.find('[role=menu]'), : this.parentMenu.cmpEl.find('[role=menu]'),
innerEl = $(this.el).find('.inner').andSelf().filter('.inner'), innerEl = $(this.el).find('.inner').addBack().filter('.inner'),
docH = Common.Utils.innerHeight(), docH = Common.Utils.innerHeight(),
menuH = menuRoot.outerHeight(), menuH = menuRoot.outerHeight(),
top = parseInt(menuRoot.css('top')); top = parseInt(menuRoot.css('top'));
......
...@@ -150,7 +150,7 @@ define([ ...@@ -150,7 +150,7 @@ define([
if (!me.rendered) { if (!me.rendered) {
var el = this.cmpEl; var el = this.cmpEl;
this._input = this.cmpEl.find('input').andSelf().filter('input'); this._input = this.cmpEl.find('input').addBack().filter('input');
if (this.editable) { if (this.editable) {
this._input.on('blur', _.bind(this.onInputChanged, this)); this._input.on('blur', _.bind(this.onInputChanged, this));
......
...@@ -695,7 +695,7 @@ define([ ...@@ -695,7 +695,7 @@ define([
hide_mask = true; hide_mask = true;
mask.attr('counter', parseInt(mask.attr('counter'))-1); mask.attr('counter', parseInt(mask.attr('counter'))-1);
if (this.$lastmodal.size() > 0) { if (this.$lastmodal.length > 0) {
this.$lastmodal.removeClass('dethrone'); this.$lastmodal.removeClass('dethrone');
hide_mask = !(this.$lastmodal.hasClass('modal') && this.$lastmodal.is(':visible')); hide_mask = !(this.$lastmodal.hasClass('modal') && this.$lastmodal.is(':visible'));
} }
...@@ -736,7 +736,7 @@ define([ ...@@ -736,7 +736,7 @@ define([
hide_mask = true; hide_mask = true;
mask.attr('counter', parseInt(mask.attr('counter'))-1); mask.attr('counter', parseInt(mask.attr('counter'))-1);
if (this.$lastmodal.size() > 0) { if (this.$lastmodal.length > 0) {
this.$lastmodal.removeClass('dethrone'); this.$lastmodal.removeClass('dethrone');
hide_mask = !(this.$lastmodal.hasClass('modal') && this.$lastmodal.is(':visible')); hide_mask = !(this.$lastmodal.hasClass('modal') && this.$lastmodal.is(':visible'));
} }
......
...@@ -81,8 +81,8 @@ function patchDropDownKeyDown(e) { ...@@ -81,8 +81,8 @@ function patchDropDownKeyDown(e) {
if (!isActive || (isActive && e.keyCode == 27)) { if (!isActive || (isActive && e.keyCode == 27)) {
if (e.which == 27) { if (e.which == 27) {
$items = $('[role=menu] li.dropdown-submenu.over:visible', $parent); $items = $('[role=menu] li.dropdown-submenu.over:visible', $parent);
if ($items.size()) { if ($items.length) {
$items.eq($items.size()-1).removeClass('over'); $items.eq($items.length-1).removeClass('over');
return false; return false;
} else if ($parent.hasClass('dropdown-submenu') && $parent.hasClass('over')) { } else if ($parent.hasClass('dropdown-submenu') && $parent.hasClass('over')) {
$parent.removeClass('over'); $parent.removeClass('over');
......
...@@ -202,13 +202,13 @@ define([ ...@@ -202,13 +202,13 @@ define([
me.api.asc_enableKeyEvents(false); me.api.asc_enableKeyEvents(false);
}, },
'modal:close': function(dlg) { 'modal:close': function(dlg) {
if (dlg && dlg.$lastmodal && dlg.$lastmodal.size() < 1) { if (dlg && dlg.$lastmodal && dlg.$lastmodal.length < 1) {
me.isModalShowed = false; me.isModalShowed = false;
me.api.asc_enableKeyEvents(true); me.api.asc_enableKeyEvents(true);
} }
}, },
'modal:hide': function(dlg) { 'modal:hide': function(dlg) {
if (dlg && dlg.$lastmodal && dlg.$lastmodal.size() < 1) { if (dlg && dlg.$lastmodal && dlg.$lastmodal.length < 1) {
me.isModalShowed = false; me.isModalShowed = false;
me.api.asc_enableKeyEvents(true); me.api.asc_enableKeyEvents(true);
} }
......
...@@ -192,13 +192,13 @@ define([ ...@@ -192,13 +192,13 @@ define([
me.api.asc_enableKeyEvents(false); me.api.asc_enableKeyEvents(false);
}, },
'modal:close': function(dlg) { 'modal:close': function(dlg) {
if (dlg && dlg.$lastmodal && dlg.$lastmodal.size() < 1) { if (dlg && dlg.$lastmodal && dlg.$lastmodal.length < 1) {
me.isModalShowed = false; me.isModalShowed = false;
me.api.asc_enableKeyEvents(true); me.api.asc_enableKeyEvents(true);
} }
}, },
'modal:hide': function(dlg) { 'modal:hide': function(dlg) {
if (dlg && dlg.$lastmodal && dlg.$lastmodal.size() < 1) { if (dlg && dlg.$lastmodal && dlg.$lastmodal.length < 1) {
me.isModalShowed = false; me.isModalShowed = false;
me.api.asc_enableKeyEvents(true); me.api.asc_enableKeyEvents(true);
} }
......
...@@ -202,13 +202,13 @@ define([ ...@@ -202,13 +202,13 @@ define([
me.api.asc_enableKeyEvents(false); me.api.asc_enableKeyEvents(false);
}, },
'modal:close': function(dlg) { 'modal:close': function(dlg) {
if (dlg && dlg.$lastmodal && dlg.$lastmodal.size() < 1) { if (dlg && dlg.$lastmodal && dlg.$lastmodal.length < 1) {
me.isModalShowed = false; me.isModalShowed = false;
me.api.asc_enableKeyEvents(true); me.api.asc_enableKeyEvents(true);
} }
}, },
'modal:hide': function(dlg) { 'modal:hide': function(dlg) {
if (dlg && dlg.$lastmodal && dlg.$lastmodal.size() < 1) { if (dlg && dlg.$lastmodal && dlg.$lastmodal.length < 1) {
me.isModalShowed = false; me.isModalShowed = false;
me.api.asc_enableKeyEvents(true); me.api.asc_enableKeyEvents(true);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment