Всем привет, есть страница с использованием jquery и вызовом диалога С какого-то момента стала выскакивать ошибка | Код | TypeError: $(...).modal is not a function
|
Я взял исходный код и стал блоками вырезать html и js куски стараясь найти что вызывает ошибку
Вырезал все что мог - ошибка осталась
Firebug ошибок в сети не показывает http://s018.radikal.ru/i504/1406/9e/fbefa5633a52.png
В jquery-ui-1.10.1.custom.js заголовке написано
| Код | /*! jQuery UI - v1.10.1 - 2013-03-06 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.menu.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js, jquery.ui.effect.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js * Copyright (c) 2013 jQuery Foundation and other contributors Licensed MIT */
|
То есть jquery.ui.dialog.js включен. На другой странице перестал работать аналогично tabs. В чем может быть проблема? код старницы :
| Код | <!DOCTYPE html> <html lang="en"> <head>
<link rel="stylesheet" href="http://localhost/local-yii-tyb.com/tybapp/assets/mine/css/jquery-ui-1.10.1.custom.css" type="text/css" media="all"/>
<script type="text/javascript" src="http://localhost/local-yii-tyb.com/tybapp/assets/mine/jquery/jquery-1.9.1.js"></script> <script type="text/javascript" src="http://localhost/local-yii-tyb.com/tybapp/assets/mine/jquery/jquery-ui-1.10.1.custom.js"></script>
</head>
<script type="text/javascript">
$(document).ready(function ($) { alert(-112)
});
function NewReview(tour_id) { $("#tour_new_review_full_name").val(""); $("#tour_new_review_email_inquired").val(""); $("#tour_new_review_review").val(""); $("#tour_new_review_dialog").modal({ "backdrop": "static", "keyboard": true, "show": true }); }
</script>
<section id="content-ht"> <div class="container"> <div class="row"> <dl id="search-pane-ht" class="col-xs-12 col-sm-4 col-md-3"> <dl> <dt><span>Search for a tour</span></dt> <dd>
<a class="buttonRed" onclick="javascript:SearchOnClick();"><span>Search</span></a> </dd> </dl>
<!-- reviews -->
<dd id="review"> <div class="row"> <h4 class="col-xs-12 col-sm-7">Customer Reviews</h4> <span class="col-xs-12 col-sm-5"> <button class="pull-right grey" onclick="javascript:NewReview(37);">Write a review</button> </span> </div> </dd> </dl> </div> </div>
</section>
</div> <!-- div class="container" END--> </body> </html>
|
|