Browse Source

fixed codacy

version-14
Achilles Rasquinha 7 years ago
parent
commit
c582e7ae46
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      frappe/public/js/frappe/ui/capture.js

+ 9
- 9
frappe/public/js/frappe/ui/capture.js View File

@@ -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
}

Loading…
Cancel
Save