Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
domotikad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
domotika
domotikad
Commits
94f41a30
Commit
94f41a30
authored
Jan 30, 2014
by
nextime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a little bug in action buttons
parent
aa3625ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
actions.php
Web/htdocs/gui/buttons/actions.php
+2
-2
No files found.
Web/htdocs/gui/buttons/actions.php
View file @
94f41a30
...
...
@@ -34,12 +34,12 @@ if(@is_array($button_switchar) && in_array($button['ctx'], $button_switchar)) {
$button_text
=
$button
[
'text_off'
];
$button_color
=
"btn-"
.
$dmcolors
[
$button
[
'color_off'
]];
if
(
intval
(
$button
[
'status'
])
>
0
)
{
$button_c
hecked
=
"btn-"
.
$dmcolors
[
$button
[
'color_on'
]];
$button_c
olor
=
"btn-"
.
$dmcolors
[
$button
[
'color_on'
]];
$button_text
=
$button
[
'text_on'
];
}
?>
<button
class=
"btn devlist-button
<?=
$button_c
hecked
?>
"
data-domotika-actid=
"
<?=
$button
[
'id'
]
?>
"
<button
class=
"btn devlist-button
<?=
$button_c
olor
?>
"
data-domotika-actid=
"
<?=
$button
[
'id'
]
?>
"
data-dmcolor-on=
"btn-
<?=
$dmcolors
[
$button
[
'color_on'
]]
?>
"
data-dmcolor-off=
"btn-
<?=
$dmcolors
[
$button
[
'color_off'
]]
?>
"
data-dmtext-on=
"
<?=
$button
[
'text_on'
]
?>
"
data-dmtext-off=
"
<?=
$button
[
'text_off'
]
?>
"
>
<?=
$button_text
?>
</button>
<?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment