diff --git a/include/staff/footer.inc.php b/include/staff/footer.inc.php index d112e157a52b98d0832a68f69f77e24751ae1f5f..3887138ad6315f5ac1970f0d6fc45c1ac25979d4 100644 --- a/include/staff/footer.inc.php +++ b/include/staff/footer.inc.php @@ -24,8 +24,9 @@ if(is_object($thisstaff) && $thisstaff->isStaff()) { ?> <script type="text/javascript"> if ($.support.pjax) { $(document).on('click', 'a', function(event) { - if (!$(this).hasClass('no-pjax')) - $.pjax.click(event, {container: $('#content'), timeout: 2000}) + if (!$(this).hasClass('no-pjax') + && !$(this).closest('.no-pjax').length) + $.pjax.click(event, {container: $('#content'), timeout: 2000}); }) } </script> diff --git a/include/staff/org-view.inc.php b/include/staff/org-view.inc.php index 7951460c2cfbefdd309e09563bd9009a86c94aac..7f6403765f04af8ad4a06076136f7b7a0ae2d319 100644 --- a/include/staff/org-view.inc.php +++ b/include/staff/org-view.inc.php @@ -59,7 +59,7 @@ if(!defined('OSTSCPINC') || !$thisstaff || !is_object($org)) die('Invalid path') include STAFFINC_DIR . 'templates/users.tmpl.php'; ?> </div> -<div class="tab_content" id="tickets" style="display:none;"> +<div class="tab_content no-pjax" id="tickets" style="display:none;"> <?php include STAFFINC_DIR . 'templates/tickets.tmpl.php'; ?> diff --git a/js/redactor-osticket.js b/js/redactor-osticket.js index 80f0b0586a05023dfce664088a910fd72077effc..0d4c202db9a824108eb46a91daaa2606bb132917 100644 --- a/js/redactor-osticket.js +++ b/js/redactor-osticket.js @@ -224,7 +224,8 @@ $(function() { 'syncBeforeCallback': captureImageSizes, 'linebreaks': true, 'tabFocus': false, - 'toolbarFixedBox': true + 'toolbarFixedBox': true, + 'focusCallback': function() { this.$box.addClass('no-pjax'); } }; if (el.data('redactor')) return; var reset = $('input[type=reset]', el.closest('form')); diff --git a/scp/css/scp.css b/scp/css/scp.css index 2dec22ec0fe44a3b1c3f9c4bec67cb59287ac137..9e2c2201f0fdd44f564e6a0abf2762381003a669 100644 --- a/scp/css/scp.css +++ b/scp/css/scp.css @@ -1502,6 +1502,7 @@ ul.progress li.no small {color:red;} background: #000; z-index: 101; -webkit-transform: translate3d(0,0,0); + opacity: 0.5; } #loading, #upgrading { diff --git a/scp/js/scp.js b/scp/js/scp.js index 77b2b86888320c363f101dc9e63c8be648353b5f..b93151a2fc317c8b08ddce39e7999e9b84f4b8d4 100644 --- a/scp/js/scp.js +++ b/scp/js/scp.js @@ -342,13 +342,6 @@ var scp_prep = function() { property: "username" }); - //Overlay - $('#overlay').css({ - opacity : 0.5, - top : 0, - left : 0 - }); - //Dialog $('.dialog').each(function() { var w = $(window), $this=$(this); @@ -639,9 +632,6 @@ $(document).on('pjax:start', function() { if (event instanceof PopStateEvent) return; - //if ($(event.target).closest('redactor_editor').length()) - // return; - clearInterval(window.ticket_refresh); // Clear all timeouts var id = window.setTimeout(function() {}, 0);