2013-10-31 3 views
1

phtml 페이지와 twitter 부트 스트랩 모델 에 Google지도 js를 포함하고 있지만 크롬에서는 작동하지 않습니다. 어떻게 영향을 미칩니 까? 검은 색 배경이 표시되고 두 번 클릭 할 때까지 움직이지 않기 때문에 모델의 단추를 닫을 수 없습니다. 자바 스크립트를 사용하여 - Twitter bootstrap Chrome에서 Gmap을 사용하는 모달

<button id="profile_btn_message" class="btn profile-btn" href="#myModal" role="button" data-toggle="modal"> 
    <?php echo $this->translate('contact'); ?> 
</button> 

내 모달 사업부

모달을 전환하는 다른 방법이있다

<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 
    <div class="modal-header"> 
     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> 
     <h3 id="myModalLabel" class="text-center "> 
      تنبيه 
     </h3> 
    </div> 
    <div class="modal-body text-right font-bold" style="font-size: 18px;line-height: 25px;"> 
     عزيزي المستخدم 
     <br /> 
     يمكنك الان مراسلة الطبيب لتحديد موعد للمراجعة او ارسال استفسار خاص لنفس الطبيب 
     <br/> 
     <span style="color: #F5517A"> 
      ملاحضة: 
     </span> 
     : في حال لم تتضمن المراسلة للاحتمالات المذكورة اعلاه سوف يتم تحويلها كسؤال على الموقع او رفض المراسلة 
    </div> 
    <div class="modal-footer"> 
     <button id="message_cancle" class="btn pull-right" data-dismiss="modal" aria-hidden="true" >اغلاق</button> 
     <?php if (isset($this->location['location_id'])) {?> 
     <button id="message_continue" class="btn pull-right margin-right-5px" data-dismiss="modal" aria-hidden="true" onclick="sendEmail('<?php echo $this->escape($this->url(array('location_id' => $this->location['location_id']), 'ajaxMessageSend')); ?>');">استمرار </button> 
     <?}?> 
    </div> 
</div> 
+1

여기에 모달 div 코드를 추가 하시겠습니까? –

+0

@optional 선택 사항 질문을 편집했습니다. – KJA

답변

2

입니다. 포함하는 것을 잊지 마십시오 -

<!-- Button to trigger modal --> 
<a href="#myModal" role="button" class="btn" data-toggle="modal"> <?php echo $this-  >translate('contact'); ?> </a> 

가 PS : 모달 지금 작동하는 경우

<script type="text/javascript"> 
$('#myModal').modal('show') 
</script> 

모달을 전환하기위한 앵커 태그를 추가하고, 참조 :

코드에서 다음 코드를 포함 bootstrap.min.js 또는 bootswatch.js 파일 중 하나. 둘 다 포함하지 마십시오.

희망 작품 :-)

관련 문제