Authored by tanling

分割图宽度and高度

... ... @@ -355,9 +355,9 @@
<div class="row">
<label class="col-sm-2 control-label">图片</label>
<div class="col-sm-8">
<input type="text" placeholder="图片宽度" class="observe number" data-field="imageWidth" value="[[contentData.imageWidth]]" style="width:100px;" >
<input type="text" placeholder="图片宽度" class="observe number" id="divide_imageWidth" data-field="imageWidth" value="[[contentData.imageWidth]]" style="width:100px;" >
&emsp;
<input type="text" placeholder="图片高度" class="observe number" data-field="imageHeight" value="[[contentData.imageHeight]]" style="width:100px;" >
<input type="text" placeholder="图片高度" class="observe number" id="divide_imageHeight" data-field="imageHeight" value="[[contentData.imageHeight]]" style="width:100px;" >
</div>
</div>
... ...
... ... @@ -33,8 +33,8 @@ var Button = [
"alt": "",
"src": ""
}],
"imageHeight":"",
"imageWidth":"",
imageHeight:"",
imageWidth:"",
"isDefault":"1",
"divideColour" : "1"
},
... ...
... ... @@ -1252,6 +1252,15 @@ $(document).on("change", '#split_image_width', function () {
Bll.renderDialog("splitJointImg-template");
});
$(document).on("change", '#divide_imageWidth', function () {
Bll.module.contentData.imageWidth = $(this).val();
});
$(document).on("change", '#divide_imageHeight', function () {
Bll.module.contentData.imageHeight = $(this).val();
});
$(document).on("change", '#focus-select', function () {
Bll.module.contentData.focus_type = $(this).val();
Bll.renderDialog("focus-template");
... ...