소스 검색

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 =
`
<div class="text-center">
@@ -91,4 +87,8 @@ frappe.ui.Capture = class

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

불러오는 중...
취소
저장