app/views/educode_sales/businesses/new.html.erb in educode_sales-0.2.8 vs app/views/educode_sales/businesses/new.html.erb in educode_sales-0.2.9

- old
+ new

@@ -1,11 +1,11 @@ <div class="layui-form layuimini-form"> <div class="layui-form-item" style="padding: 25px"> <div class="layui-inline"> <label class="layui-form-label required">商机名称</label> <div class="layui-input-block"> - <input type="text" name="name" autocomplete="off" lay-verify="required" class="layui-input" style="width: 300px;"> + <input id="inputFocus" type="text" name="name" autocomplete="off" lay-verify="required" class="layui-input" style="width: 300px;"> </div> </div> <div class="layui-inline"> <label class="layui-form-label required">单位部门</label> <div class="layui-input-block" id="add_department" style="width: 300px;"></div> @@ -16,9 +16,10 @@ </div> </div> </div> </div> <script> + document.getElementById("inputFocus").focus(); layui.use(['form', 'table', 'upload', 'layer', 'laytpl', 'request', 'selectInput'], function () { var form = layui.form, layer = layui.layer, table = layui.table, laytpl = layui.laytpl, \ No newline at end of file