浏览代码

fixed codacy

version-14
Achilles Rasquinha 7 年前
父节点
当前提交
c582e7ae46
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. +9
    -9
      frappe/public/js/frappe/ui/capture.js

+ 9
- 9
frappe/public/js/frappe/ui/capture.js 查看文件

@@ -1,13 +1,9 @@
frappe.ui.Capture = class
frappe.ui.Capture = class
{ {
constructor (options)
constructor (options = { })
{ {
this.options =
{
width: 480, height: 320, flip_horiz: true
};

this.dialog = new frappe.ui.Dialog();
this.options = Object.assign({}, frappe.ui.Capture.DEFAULT_OPTIONS, options);
this.dialog = new frappe.ui.Dialog();
this.template = this.template =
` `
<div class="text-center"> <div class="text-center">
@@ -91,4 +87,8 @@ frappe.ui.Capture = class


$(this.dialog.$wrapper).remove(); $(this.dialog.$wrapper).remove();
} }
};
};
frappe.ui.Capture.DEFAULT_OPTIONS =
{
width: 480, height: 320, flip_horiz: true
}

正在加载...
取消
保存