Textarea和modal不在移动设备上工作

时间:2016-07-07 16:48:14

标签: javascript html twitter-bootstrap mobile

我正在为维修店制作一个票务系统,并可选择使用预制响应来更新维修状态。您可以单击一个按钮,它会打开一个带有预设响应选项的模式,单击插入,然后将响应插入按钮下方的文本区域。一切都在桌面上工作,但是,在移动设备上,固定响应按钮不可点击,也无法点击textarea。

按钮和textarea:

intent.setClassName("com.google.android.gm", "com.google.android.gm.ComposeActivityGmail");

模态:

    <div class="col-xs-12">
        <div class="form-group">
            <label for="message">Status Update Message:  
            <button type="button" class="btn btn-secondary text-left" data-toggle="modal" data-target="#myModal"><i class="fa fa-file-text" aria-hidden="true"></i></button></label>
            <textarea class="form-control" required rows="8" maxlength="750" name="message" id="message"></textarea>
        </div>
    </div>

用于插入的Javascript:

<div id="myModal" class="modal fade" role="dialog">
        <div class="modal-dialog">
        <!-- Modal content-->
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                    <h4 class="modal-title">Canned Responses</h4>
                </div>
                <div class="modal-body">
                    <div class="col-xs-12">
                    <div class="col-xs-3">
                    <p>Diagnosing</p>
                    </div>
                    <div class="col-xs-7">
                    <p id="Dingmess">Hi,  Thanks for coming in.  We are currently diagnosing your machine...</p>
                    </div>
                    <div class="col-xs-2">
                    <button type="button" id="Diagnosing"class="btn btn-default" data-dismiss="modal">Insert</button>
                    </div>
                    <br>
                    <div class="col-xs-3">
                    <p>Diagnosis</p>
                    </div>
                    <div class="col-xs-7">
                    <p id="Dmess">Hi, We took a look at your device, and the issue is *.  It will be $...</p>
                    </div>
                    <div class="col-xs-2">
                    <button type="button" id="Diagnosis" class="btn btn-default" data-dismiss="modal">Insert</button>
                    </div>
                    <br>
                    <div class="col-xs-3">
                    <p>Repair Approved</p>
                    </div>
                    <div class="col-xs-7">
                    <p id="Appmess">Thanks for your approval.  We will proceed with the fix and let you know when it's ready to pick...</p>
                    </div>
                    <div class="col-xs-2">
                    <button type="button" id="Approved" class="btn btn-default" data-dismiss="modal">Insert</button>
                    </div>
                    <div class="col-xs-3">
                    <p>Repair Declined</p>
                    </div>
                    <div class="col-xs-7">
                    <p id="Decmess">Your repair has been marked as declined.  Please let us know...</p>
                    </div>
                    <div class="col-xs-2">
                    <button type="button" id="Declined" class="btn btn-default" data-dismiss="modal">Insert</button>
                    </div>
                    <br>
                    <div class="col-xs-3">
                    <p>Parts Ordered</p>
                    </div>
                    <div class="col-xs-7">
                    <p id="Partmess">Parts have been ordered. We will notify you when we begin...</p>
                    </div>
                    <div class="col-xs-2">
                    <button type="button" id="Parts" class="btn btn-default" data-dismiss="modal">Insert</button>
                    </div>
                    <br>
                    <div class="col-xs-3">
                    <p>In Progress</p>
                    </div>
                    <div class="col-xs-7">
                    <p id="Progmess">Your repair is in progress. We will notify you when complete</p>
                    </div>
                    <div class="col-xs-2">
                    <button type="button" id="Progress" class="btn btn-default" data-dismiss="modal">Insert</button>
                    </div>
                    <br>
                    <div class="col-xs-3">
                    <p>Completed</p>
                    </div>
                    <div class="col-xs-7">
                    <p id="Compmess">Your repairs are complete, and your device is ready!</p>
                    </div>
                    <div class="col-xs-2">
                    <button type="button" id="Completed" class="btn btn-default" data-dismiss="modal">Insert</button>
                    </div>
                    <br>
                    <div class="col-xs-3">
                    <p>Closed/Invoiced</p>
                    </div>
                    <div class="col-xs-7">
                    <p id="Closedmess">The ticket has been closed. Thank you.</p>
                    </div>
                    <div class="col-xs-2">
                    <button type="button" id="Closed" class="btn btn-default" data-dismiss="modal">Insert</button>
                    </div>
                    </div>
                </div>
                    <div class="modal-footer">
                        <div class="col-xs-12">
                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                        </div>
                    </div>
            </div>
        </div>
</div>

有关为什么它不能在手机上运行的任何想法?我找了一个小时左右,我没有发现任何人有同样的问题。

1 个答案:

答案 0 :(得分:0)

此代码适用于我。我确保我的脚本按以下顺序和版本:

Wednesday