Posted 31 октября, 201410 yr comment_73220 В общем захотел я изменить верхнюю менюшку и когда открываю файл globalTemplate мне вылетает ошибка SyntaxError:Unvalid Regular Expression:/^[/ .Жму "ок" и вылетает код ошибки: Сервер сообщил об ошибке: {"templateData":{"template_id":"14","template_set_id":"0","template_group":"skin_global","template_content":"<li class='fbLike'><div class="fb-like" data-href="{$url}" data-send="false" data-layout="button_count" data-width="150" data-show-faces="false" data-action="like"></div><div id="fb-root"></div></li>n<script>(function(d, s, id) {n var js, fjs = d.getElementsByTagName(s)[0];n if (d.getElementById(id)) return;n js = d.createElement(s); js.id = id;n js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId={$this->settings['fbc_appid']}";n fjs.parentNode.insertBefore(js, fjs);n}(document, 'script', 'facebook-jssdk'));</script>","template_name":"facebookShareButton","template_data":"$url, $title","template_updated":"1414762094","template_removable":"0","template_added_to":"0","template_user_added":"0","template_user_edited":"0","template_master_key":"root","_actualSetID":null,"_belongsSetID":5,"_template_content":"<li class='fbLike'><div class="fb-like" data-href="{$url}" data-send="false" data-layout="button_count" data-width="150" data-show-faces="false" data-action="like"></div><div id="fb-root"></div></li>n<script>(function(d, s, id) {n var js, fjs = d.getElementsByTagName(s)[0];n if (d.getElementById(id)) return;n js = d.createElement(s); js.id = id;n js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId={$this->settings['fbc_appid']}";n fjs.parentNode.insertBefore(js, fjs);n}(document, 'script', 'facebook-jssdk'));</script>","_template_data":"$url, $title","_isMaster":1}} Link to comment https://ipbmafia.ru/topic/9518-oshibka-syntaxerror/ Share on other sites Больше вариантов
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.