diff options
Diffstat (limited to 'build/js/ojsxc.js')
-rw-r--r-- | build/js/ojsxc.js | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/build/js/ojsxc.js b/build/js/ojsxc.js index cae66f5..5210ea0 100644 --- a/build/js/ojsxc.js +++ b/build/js/ojsxc.js @@ -1,13 +1,13 @@ /*! - * ojsxc v3.0.2+appstore - 2016-12-27 + * ojsxc v3.1.0-beta - 2017-01-23 * - * Copyright (c) 2016 Klaus Herberth <klaus@jsxc.org> <br> + * Copyright (c) 2017 Klaus Herberth <klaus@jsxc.org> <br> * Released under the MIT license * * Please see http://www.jsxc.org/ * * @author Klaus Herberth <klaus@jsxc.org> - * @version 3.0.2+appstore + * @version 3.1.0-beta * @license MIT */ @@ -55,6 +55,11 @@ function onRosterToggle(event, state, duration) { right: (roster_width + toggle_width) + 'px' }); } + + // trigger nextcloud/owncloud triggers + setTimeout(function(){ + $(window).resize(); + }, duration + 50); } /** @@ -113,6 +118,9 @@ function onRosterReady() { if ($('#app-sidebar').length > 0) { $('#app-sidebar').css('right', (roster_width + roster_right + toggle_width) + 'px'); } + + // trigger nextcloud/owncloud triggers + $(window).resize(); }, 500); function getValues() { @@ -132,6 +140,11 @@ $(function() { return; } + if (window.parent && window !== window.parent) { + // abort if inside a frame + return; + } + if (typeof jsxc === 'undefined') { // abort if core or dependencies threw an error return; |