ui: simplify button widgets and optimize layering

This commit is contained in:
jean-emmanuel 2016-09-15 14:32:50 +02:00
parent 8b9ed8c48a
commit 99ae3cc0b8
8 changed files with 2158 additions and 2207 deletions

View file

@ -28,12 +28,10 @@ module.exports.create = function(widgetData,container) {
var widget = $(`
<div class="push toggle">
<div class="light"</div>
<div class="light">
</div>\
`),
$document = $(document),
light = widget.find('.light')[0]
$document = $(document)
widget.value = widget.find('span')
widget.state = 0

View file

@ -27,12 +27,10 @@ module.exports.options = {
module.exports.create = function(widgetData,container) {
var widget = $(`
<div class="toggle">
<div class="light"></div>
<div class="light">
</div>\
`),
$document = $(document),
light = widget.find('.light')[0]
$document = $(document)
widget.value = widget.find('span')
widget.state = 0

File diff suppressed because it is too large Load diff