Jump to content

Page back from 'create new ticket' error


Recommended Posts

Posted (edited)

If I go to create a new support ticket and then click the back arrow to go back to the ticket list without actually creating a ticket, this appears on the screen.

 

I am testing after having done an upgrade from 3.6.2 to 4.0

 

This is only in Chrome Version 53.0.2785.116 (64-bit) on a Mac

 

{"replacer":".content_section","content":"        <script type=\"text\/javascript\">\n$(document).blestaSetHeadTag(\"link\", { id: \"support_manager_styles\",\nmedia: \"screen\",\ntype: \"text\/css\",\nrel: \"stylesheet\",\nhref: \"\/beta\/plugins\/support_manager\/views\/default\/css\/styles.css\" });\n\n<\/script>\n\t\t\t\t<div class=\"inner\">\n\t\t\t\t\t<div class=\"links_row\">\n\t\t\t\t\t\t<ul>\n<li class=\"first\"><a href=\"\/beta\/admin\/plugin\/support_manager\/admin_tickets\/index\/open\/\" class=\"ajax\">Open <span>(4)<\/span><\/a><\/li>\n<li class=\"\"><a href=\"\/beta\/admin\/plugin\/support_manager\/admin_tickets\/index\/awaiting_reply\/\" class=\"ajax\">Awaiting Reply <span>(9)<\/span><\/a><\/li>\n<li class=\"\"><a href=\"\/beta\/admin\/plugin\/support_manager\/admin_tickets\/index\/in_progress\/\" class=\"ajax\">In Progress <span>(1)<\/span><\/a><\/li>\n<li class=\"current\"><a href=\"\/beta\/admin\/plugin\/support_manager\/admin_tickets\/index\/closed\/\" class=\"ajax\">Closed <span>(333)<\/span><\/a><\/li>\n<\/ul>\n\n\t\t\t\t\t\t<a class=\"btn btn-default pull-right btn-sm\" title=\"Open Ticket\" href=\"\/beta\/admin\/plugin\/support_manager\/admin_tickets\/add\/\"><i class=\"fa fa-plus\"><\/i> <span><\/span><\/a>\n\n\t\t\t\t\t<\/div>\n<div class=\"common_box_content\"><form method=\"post\" action=\"\/beta\/admin\/plugin\/support_manager\/admin_tickets\/action\/\" id=\"tickets\">\n<input type=\"hidden\" name=\"_csrf_token\" value=\"00efe678f847b88414d4bd94bd8b154a8eb64e8b17fc898c26ba8082b87e5494\" \/>\n        <div class=\"empty_section\">\n            <div class=\"empty_box\">\n                There are currently no tickets with this status.            <\/div>\n        <\/div>\n        <\/form>\n        <script type=\"text\/javascript\">\n            $(document).ready(function() {\n                \/\/ Clear old interval before ever starting a new one\n                if (support_manager_ticket_time)\n                    clearInterval(support_manager_ticket_time);\n                                \/\/ Refresh\n                support_manager_ticket_time = startUpdateTimer();\n                \n                $('.tickets').change(function() {\n                    if ($(this).val() == 'all') {\n                        if ($('#tickets_all').prop('checked'))\n                            $('.tickets').attr('checked', 'checked');\n                        else\n                            $('.tickets').removeAttr('checked');\n                    }\n\n                    if ($('.tickets:checked').length > 0) {\n                        stopUpdateTimer(support_manager_ticket_time);\n                        $('#ticket_actions').show();\n                    }\n                    else {\n                        if (support_manager_ticket_time) {\n                            clearInterval(support_manager_ticket_time);\n                            startUpdateTimer();\n                        }\n                        $('#ticket_actions').hide();\n                    }\n                });\n\n                setTicketAction();\n                $('#ticket_action').change(function() {\n                    setTicketAction();\n                });\n\n                $('#ticket_number').autocomplete({\n                    minLength: 3,\n                    appendTo: \".with_ticket\",\n                    position: { my: \"left bottom\", at: \"left top\"},\n                    source: function(request, response) {\n                        $(document).blestaRequest('POST', '\/beta\/admin\/plugin\/support_manager\/admin_tickets\/searchbycode\/',\n                            { _csrf_token: $('#tickets').find('input[name=_csrf_token]').val(), search: request.term},\n                            function(data) {\n                                if (data && data.tickets) {\n                                    \/\/ Build the response to show\n                                    var tickets = new Array();\n                                    for (var id in data.tickets)\n                                        tickets.push({label:data.tickets[id], value:data.tickets[id], id:id});\n                                    response(tickets);\n\n                                    \/\/ No results\n                                    if (tickets.length == 0)\n                                        $('#no_tickets').show();\n                                    else\n                                        $('#no_tickets').hide();\n                                }\n                            },\n                            null,\n                            {dataType:'json'}\n                        );\n                    },\n                    select: function(event, ui) {\n                        $('#ticket_id').val(ui.item.id);\n                    }\n                });\n            });\n\n            function startUpdateTimer() {\n                return setTimeout(function() {\n                    $(this).blestaRequest(\"GET\", '\/beta\/admin\/plugin\/support_manager\/admin_tickets\/index\/closed\/',  null,\n                        \/\/ Success response\n                        function(data) {\n                            if (data.replacer == null) {\n                                $(\"#admin_tickets\").html(data.content);\n                                $(\"#admin_tickets\").blestaBindToolTips();\n                            }\n                            else {\n                                $(data.replacer, $(\"#admin_tickets\")).html(data.content);\n                                $(data.replacer, $(\"#admin_tickets\")).blestaBindToolTips();\n                            }\n                        },\n                        null,\n                        {dataType: 'json'}\n                    );\n                }, 30000);\n            }\n\n            function stopUpdateTimer(timer) {\n                clearTimeout(timer);\n            }\n\n            function setTicketAction() {\n                $('.ticket_action').hide();\n\n                switch ($('#ticket_action').val()) {\n                    case \"merge\":\n                        $('.with_ticket').show();\n                    break;\n                    case \"update_status\":\n                        $('.update_status').show();\n                    break;\n                    default:\n                    break;\n                }\n            }\n        <\/script>\n        \n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>","message":null}

Screen Shot 2016-09-15 at 8.40.11 PM.png

Edited by evolvewh
Added the browser I was using
Posted
1 hour ago, Tyson said:

It sounds like your browser has the ability to go back to the last AJAX request. Never seen that before.

I hadn't either. I just checked with 3.6.2 and this doesn't happen.

Posted
On 9/16/2016 at 11:19 AM, evolvewh said:

I hadn't either. I just checked with 3.6.2 and this doesn't happen.

I'm not able to reproduce this on Chrome 53.0.2785.116 on Windows 7. I wonder if it as unique to Chrome on OSX.

Posted
On 9/23/2016 at 11:36 PM, jobplease said:

Please add this to 4.1u *unique :)

I believe it's a browser issue, not sure how we would correct it. Chrome should know the difference between a page load and an AJAX request.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...