F
F
faragly2015-07-02 09:05:22
1C-Bitrix
faragly, 2015-07-02 09:05:22

How to show the admin panel page after 1C-Bitrix authorization?

Hello! Wrote a page of the module of my own design, but all the time when authorizing, when loading the page it does not show anything, it shows an empty page
c9f347c87454422b90b217b5b871f926.png
. If you refresh, the page appears.
By the way, in the console writes
Uncaught SyntaxError: Unexpected token <

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
faragly, 2015-07-02
@faragly

The piece of code that causes the error

<script id="template-price.html" type="text/ng-template">
<ng-form name="prices">
... тут html шаблон для angularjs ...
</ng-form>
</script>

Bitrix ajax receives the page after authorization, pulls all the scripts from the page and launches, but pulls not the one with type="text/javascript", but everything inside the script tags (angular template with type="text/ng-template" there too ). There is only one way out - to bring the angular templates into html and let them load, or ask the Bitrix developers to make changes to the product.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question