Added idea on using Popover for validation info
If your not sure about popovers see https://getbootstrap.com/docs/4.0/components/popovers/
这个提交包含在:
父节点
c5ff0df369
当前提交
024669758c
共有 2 个文件被更改,包括 6 次插入 和 1 次删除
|
|
@ -159,7 +159,6 @@
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<input type="text" class="form-control form-control-sm" name="locator" id="locator" value="">
|
<input type="text" class="form-control form-control-sm" name="locator" id="locator" value="">
|
||||||
<small id="locator_info" class="form-text text-muted"></small>
|
<small id="locator_info" class="form-text text-muted"></small>
|
||||||
<small id="locator_format" class="form-text text-muted">Enter multiple (4-digit) grids separated with commas. For example: IO77,IO78</small>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
$( document ).ready(function() {
|
$( document ).ready(function() {
|
||||||
|
|
||||||
|
$("#locator")
|
||||||
|
.popover({ title: 'Gridsquare Formatting', content: "Enter multiple (4-digit) grids separated with commas. For example: IO77,IO78" })
|
||||||
|
.blur(function () {
|
||||||
|
$(this).popover('hide');
|
||||||
|
});
|
||||||
$("#sat_name").change(function(){
|
$("#sat_name").change(function(){
|
||||||
var sat = $("#sat_name").val();
|
var sat = $("#sat_name").val();
|
||||||
if (sat == "") {
|
if (sat == "") {
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用