Skip to content

Commit

Permalink
Patch wijutil, in visibility mechanism for avoid recursive loop
Browse files Browse the repository at this point in the history
Remove unnecessary refresh in appdesk
  • Loading branch information
felixgilles committed Jan 28, 2014
1 parent cff5ea8 commit 2c10051
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 60 deletions.
2 changes: 1 addition & 1 deletion static/admin/bundle/nos.min.js

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions static/admin/bundle/vendor.min.js

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions static/admin/novius-os/js/jquery.novius-os.appdesk.js
Original file line number Diff line number Diff line change
Expand Up @@ -1475,8 +1475,7 @@ define('jquery-nos-appdesk',
borderRightWidth : '0px'
})
.end()
.wijsplitter('option', 'panel1', {collapsed : true})
.wijsplitter('refresh', true, false);
.wijsplitter('option', 'panel1', {collapsed : true});

return self;
},
Expand All @@ -1490,8 +1489,7 @@ define('jquery-nos-appdesk',
borderTopWidth : '0px'
})
.end()
.wijsplitter('option', 'panel1', {collapsed : true})
.wijsplitter('refresh', true, false);
.wijsplitter('option', 'panel1', {collapsed : true});

return self;
},
Expand All @@ -1518,8 +1516,7 @@ define('jquery-nos-appdesk',
var self = this,
o = self.options;

self.uiSplitterVertical.wijsplitter('refresh', true, false);
self.uiSplitterHorizontal.wijsplitter('refresh', true, false);
self.uiSplitterVertical.wijsplitter('refresh');

self._resizeInspectorsV()
._resizeInspectorsH()
Expand Down
83 changes: 45 additions & 38 deletions static/admin/vendor/wijmo/js/wijutil/jquery.wijmo.wijutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* http://wijmo.com/
*
* Copyright(c) GrapeCity, Inc. All rights reserved.
*
*
* Dual licensed under the MIT or GPL Version 2 licenses.
* licensing@wijmo.com
* http://wijmo.com/widgets/license/
Expand Down Expand Up @@ -53,7 +53,7 @@ var wijmo;
}
} catch (e) {
}//fixed bug 26153

}
var te = val.substring(s, e);
return {
Expand Down Expand Up @@ -134,9 +134,16 @@ var wijmo;
return this.each(function () {
var $el = $(this);
if($el.hasClass("wijmo-wijobserver-visibility")) {
$el.trigger("wijmovisibilitychanged");
// Novius OS add .wijmo-wijobserver-visibility-exec (like in nosOnShow) for avoid recursive loops
$el.not('.wijmo-wijobserver-visibility-exec').addClass('wijmo-wijobserver-visibility-exec')
.trigger("wijmovisibilitychanged")
.removeClass('wijmo-wijobserver-visibility-exec');
}
$el.find(".wijmo-wijobserver-visibility").trigger("wijmovisibilitychanged");
// Novius OS add .wijmo-wijobserver-visibility-exec (like in nosOnShow) for avoid recursive loops
$el.find(".wijmo-wijobserver-visibility")
.not('.wijmo-wijobserver-visibility-exec').addClass('wijmo-wijobserver-visibility-exec')
.trigger("wijmovisibilitychanged")
.removeClass('wijmo-wijobserver-visibility-exec');
});
},
leftBorderWidth: function () {
Expand Down Expand Up @@ -327,9 +334,9 @@ var wijmo;
zIndex: element.css('z-index')
});
$.each([
'top',
'left',
'bottom',
'top',
'left',
'bottom',
'right'
], function (i, pos) {
props[pos] = element.css(pos);
Expand Down Expand Up @@ -497,40 +504,40 @@ var wijmo;
};
}
var c__escapeArr1 = [
'\n',
'\r',
'"',
'@',
'+',
'\'',
'<',
'>',
'%',
'{',
'\n',
'\r',
'"',
'@',
'+',
'\'',
'<',
'>',
'%',
'{',
'}'
], c__escapeArr2 = [
"!ESC!NN!",
"!ESC!RR!",
"!ESC!01!",
"!ESC!02!",
"!ESC!03!",
"!ESC!04!",
"!ESC!05!",
"!ESC!06!",
"!ESC!07!",
"!ESC!08!",
"!ESC!NN!",
"!ESC!RR!",
"!ESC!01!",
"!ESC!02!",
"!ESC!03!",
"!ESC!04!",
"!ESC!05!",
"!ESC!06!",
"!ESC!07!",
"!ESC!08!",
"!ESC!09!"
], c__escapeArr3 = [
"(\n)",
"(\r)",
"(\")",
"(@)",
"(\\+)",
"(')",
"(\\<)",
"(\\>)",
"(%)",
"(\\{)",
"(\n)",
"(\r)",
"(\")",
"(@)",
"(\\+)",
"(')",
"(\\<)",
"(\\>)",
"(%)",
"(\\{)",
"(\\})"
];
if(!$.wij) {
Expand Down Expand Up @@ -625,7 +632,7 @@ var wijmo;
]) : rvertical.test(my[0]) ? [
"center"
].concat(my) : [
"center",
"center",
"center"
];
}
Expand Down
Loading

0 comments on commit 2c10051

Please sign in to comment.