Twitter Boostrap Modal窗口-draggable无法正常工作

时间:2016-05-05 15:30:38

标签: javascript jquery twitter-bootstrap

我有下面的链接打开模态窗口,我想让模态窗口可拖动。出于某种原因,我的模态窗口可拖动脚本无效。

这里是模态窗口代码和下面的javascript和小提琴链接

MY FIDDLE

模态

>>> original = raw_input('Enter a word:')
Enter a word:value
>>> original
'value'
>>> 

JS

<div class="modal fade video2 advSearchModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="exampleModalLabel">Video 2</h4>
      </div>
      <div class="modal-body">

        <div class="row">
          <div class="bs-example" data-example-id="responsive-embed-16by9-iframe-youtube">
            <div class="embed-responsive embed-responsive-16by9">

              <video class="embed-responsive-item" controls src="https://www.youtube.com/embed/zpOULjyy-n8?rel=0" type="video/mp4"> </video>

            </div>
          </div>

        </div>

      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <!-- <button type="button" class="btn btn-primary">Send message</button> -->
      </div>
    </div>
  </div>
</div>

1 个答案:

答案 0 :(得分:2)

您的代码中不包含jQuery UI。这是必需的,因为它不是jQuery的标准部分。