Authored by tanling

分割图宽度and高度

@@ -355,9 +355,9 @@ @@ -355,9 +355,9 @@
355 <div class="row"> 355 <div class="row">
356 <label class="col-sm-2 control-label">图片</label> 356 <label class="col-sm-2 control-label">图片</label>
357 <div class="col-sm-8"> 357 <div class="col-sm-8">
358 - <input type="text" placeholder="图片宽度" class="observe number" data-field="imageWidth" value="[[contentData.imageWidth]]" style="width:100px;" > 358 + <input type="text" placeholder="图片宽度" class="observe number" id="divide_imageWidth" data-field="imageWidth" value="[[contentData.imageWidth]]" style="width:100px;" >
359 &emsp; 359 &emsp;
360 - <input type="text" placeholder="图片高度" class="observe number" data-field="imageHeight" value="[[contentData.imageHeight]]" style="width:100px;" > 360 + <input type="text" placeholder="图片高度" class="observe number" id="divide_imageHeight" data-field="imageHeight" value="[[contentData.imageHeight]]" style="width:100px;" >
361 </div> 361 </div>
362 </div> 362 </div>
363 363
@@ -33,8 +33,8 @@ var Button = [ @@ -33,8 +33,8 @@ var Button = [
33 "alt": "", 33 "alt": "",
34 "src": "" 34 "src": ""
35 }], 35 }],
36 - "imageHeight":"",  
37 - "imageWidth":"", 36 + imageHeight:"",
  37 + imageWidth:"",
38 "isDefault":"1", 38 "isDefault":"1",
39 "divideColour" : "1" 39 "divideColour" : "1"
40 }, 40 },
@@ -1252,6 +1252,15 @@ $(document).on("change", '#split_image_width', function () { @@ -1252,6 +1252,15 @@ $(document).on("change", '#split_image_width', function () {
1252 Bll.renderDialog("splitJointImg-template"); 1252 Bll.renderDialog("splitJointImg-template");
1253 }); 1253 });
1254 1254
  1255 +$(document).on("change", '#divide_imageWidth', function () {
  1256 + Bll.module.contentData.imageWidth = $(this).val();
  1257 +});
  1258 +
  1259 +$(document).on("change", '#divide_imageHeight', function () {
  1260 + Bll.module.contentData.imageHeight = $(this).val();
  1261 +});
  1262 +
  1263 +
1255 $(document).on("change", '#focus-select', function () { 1264 $(document).on("change", '#focus-select', function () {
1256 Bll.module.contentData.focus_type = $(this).val(); 1265 Bll.module.contentData.focus_type = $(this).val();
1257 Bll.renderDialog("focus-template"); 1266 Bll.renderDialog("focus-template");