正在显示
2 个修改的文件
包含
1 行增加
和
2 行删除
@@ -15,7 +15,7 @@ | @@ -15,7 +15,7 @@ | ||
15 | <div class="form-group"> | 15 | <div class="form-group"> |
16 | <label class="control-label col-xs-12 col-sm-2">{:__('Map_info')}:</label> | 16 | <label class="control-label col-xs-12 col-sm-2">{:__('Map_info')}:</label> |
17 | <div class="col-xs-12 col-sm-8"> | 17 | <div class="col-xs-12 col-sm-8"> |
18 | - <button type="button" class="btn btn-success" data-toggle="addresspicker">选择地图</button> | 18 | + <button type="button" class="btn btn-success" data-toggle="addresspicker" data-input-id="c-address" data-lat-id="c-lat" data-lng-id="c-lng">选择地图</button> |
19 | <input id="c-map_info" data-rule="required" class="form-control" name="row[map_info]" type="text" style="display: none"> | 19 | <input id="c-map_info" data-rule="required" class="form-control" name="row[map_info]" type="text" style="display: none"> |
20 | </div> | 20 | </div> |
21 | </div> | 21 | </div> |
@@ -3,7 +3,6 @@ define([], function () { | @@ -3,7 +3,6 @@ define([], function () { | ||
3 | //绑定data-toggle=addresspicker属性点击事件 | 3 | //绑定data-toggle=addresspicker属性点击事件 |
4 | 4 | ||
5 | $(document).on('click', "[data-toggle='addresspicker']", function () { | 5 | $(document).on('click', "[data-toggle='addresspicker']", function () { |
6 | - console.log(2); | ||
7 | var that = this; | 6 | var that = this; |
8 | var callback = $(that).data('callback'); | 7 | var callback = $(that).data('callback'); |
9 | var input_id = $(that).data("input-id") ? $(that).data("input-id") : ""; | 8 | var input_id = $(that).data("input-id") ? $(that).data("input-id") : ""; |
-
请 注册 或 登录 后发表评论