1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-10-06 11:33:43 +03:00

Seems to finished updating tables. Need to check new working

This commit is contained in:
Adolfo Gómez García
2015-10-16 08:30:33 +02:00
parent c9e9f60ed1
commit 033ac0d1f6
3 changed files with 16 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@@ -19,8 +19,10 @@ gui.reports.link = (event) ->
permission: api.permissions.MANAGEMENT
text: gettext("Generate report")
css: "disabled"
click: (val, value, btn, tbl, refreshFnc) ->
gui.doLog val.id
click: (selecteds, value, btn, tbl, refreshFnc) ->
if selecteds.length != 1
return
val = selecteds[0]
gui.tools.blockUI()
# Get gui definition
api.reports.gui val.id, ((guiDefinition) ->
@@ -60,11 +62,13 @@ gui.reports.link = (event) ->
return
select: (val, value, btn, tbl, refreshFnc) ->
unless val
$(btn).removeClass("btn3d-primary").addClass "disabled"
return
$(btn).removeClass("disabled").addClass "btn3d-primary"
select: (selecteds, clicked, btn, tbl, refreshFnc) ->
gui.doLog "Selected", selecteds
if selecteds.length is 0
btn.addClass "disabled"
else
btn.removeClass("disabled")
return
}
]

View File

@@ -36,7 +36,7 @@ This states displays as default
float: right;
}
*.table {
.table {
color: #00496b;
border: 1px solid $brand-primary;
// $font-family-monospace
@@ -44,6 +44,9 @@ This states displays as default
// $font-family-sans-serif
// font-family: $font-family-monospace;
// font-size: $font-size-large;
> tbody > tr {
cursor: pointer;
}
}
/*.table tbody tr.selected {