mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-08 21:18:00 +03:00
Almost fixed all tables on dashboard
This commit is contained in:
parent
00e85357cf
commit
0877cc01f4
@ -415,10 +415,6 @@ gui.authenticators.link = (event) ->
|
||||
prevTables.push logTable
|
||||
false
|
||||
|
||||
onRefresh: ->
|
||||
$("#users-placeholder").empty() # Remove detail on parent refresh
|
||||
return
|
||||
|
||||
onNew: gui.methods.typedNew(gui.authenticators, gettext("New authenticator"), gettext("Authenticator creation error"), testButton)
|
||||
onEdit: gui.methods.typedEdit(gui.authenticators, gettext("Edit authenticator"), gettext("Authenticator saving error"), testButton)
|
||||
onDelete: gui.methods.del(gui.authenticators, gettext("Delete authenticator"), gettext("Authenticator deletion error"))
|
||||
|
@ -211,31 +211,30 @@
|
||||
$("#" + tblParams.container).append table.text
|
||||
|
||||
# What execute on refresh button push
|
||||
onRefresh = tblParams.onRefresh or ->
|
||||
|
||||
self.refresh = refreshFnc = ->
|
||||
# Refreshes table content
|
||||
tbl = $("#" + tableId).DataTable()
|
||||
|
||||
#if( data.length > 1000 )
|
||||
gui.tools.blockUI()
|
||||
setTimeout (->
|
||||
self.rest.overview (data) -> # Restore overview
|
||||
tblParams.onData data if tblParams.onData
|
||||
tbl.rows().remove()
|
||||
if data.length > 0 # Only adds data if data is available
|
||||
tbl.rows.add(data)
|
||||
|
||||
tbl.columns.adjust().draw()
|
||||
|
||||
onRefresh self
|
||||
gui.tools.unblockUI()
|
||||
if not tblParams.onRefresh?
|
||||
tblParams.onRefresh = (tbl) ->
|
||||
return
|
||||
), 0
|
||||
return
|
||||
|
||||
# End restore overview
|
||||
false # This may be used on button or href, better disable execution of it
|
||||
self.refresh = refreshFnc = () ->
|
||||
# Refreshes table content
|
||||
tbl = $("#" + tableId).DataTable()
|
||||
|
||||
#if( data.length > 1000 )
|
||||
gui.tools.blockUI()
|
||||
setTimeout (->
|
||||
self.rest.overview (data) -> # Restore overview
|
||||
tblParams.onData data if tblParams.onData
|
||||
tbl.rows().remove()
|
||||
if data.length > 0 # Only adds data if data is available
|
||||
tbl.rows.add(data)
|
||||
|
||||
tbl.columns.adjust().draw()
|
||||
gui.doLog "onRefresh", tblParams.onRefresh
|
||||
tblParams.onRefresh self
|
||||
gui.tools.unblockUI()
|
||||
return
|
||||
), 0
|
||||
return
|
||||
|
||||
btns = []
|
||||
if tblParams.buttons
|
||||
|
@ -2,10 +2,10 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>{% trans 'Authenticators' %}</h1>
|
||||
<ol class="breadcrumb">
|
||||
<!--<ol class="breadcrumb">
|
||||
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
|
||||
<li>{% trans 'Authenticators' %}</li>
|
||||
</ol>
|
||||
</ol> -->
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
{% if messages %}
|
||||
|
@ -2,10 +2,10 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>{% trans 'Calendars' %}</h1>
|
||||
<ol class="breadcrumb">
|
||||
<!--<ol class="breadcrumb">
|
||||
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
|
||||
<li>{% trans 'Calendars' %}</li>
|
||||
</ol>
|
||||
</ol>-->
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
{% if messages %}
|
||||
|
@ -2,10 +2,10 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>{% trans 'UDS Configuration' %}</h1>
|
||||
<ol class="breadcrumb">
|
||||
<!--<ol class="breadcrumb">
|
||||
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
|
||||
<li>{% trans 'Configuration' %}</li>
|
||||
</ol>
|
||||
</ol>-->
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
{% if messages %}
|
||||
|
@ -2,10 +2,10 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>{% trans 'Connectivity' %}</h1>
|
||||
<ol class="breadcrumb">
|
||||
<!-- <ol class="breadcrumb">
|
||||
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
|
||||
<li>{% trans 'Connectivity' %}</li>
|
||||
</ol>
|
||||
</ol> -->
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
{% if messages %}
|
||||
|
@ -3,9 +3,9 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>{% trans 'Overview' %}</h1>
|
||||
<ol class="breadcrumb">
|
||||
<!-- <ol class="breadcrumb">
|
||||
<li><a id="lnk-dashboard" href="">Dashboard</a></li>
|
||||
</ol>
|
||||
</ol> -->
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
{% if messages %}
|
||||
|
@ -3,10 +3,10 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>{% trans 'UDS Image Gallery' %}</h1>
|
||||
<ol class="breadcrumb">
|
||||
<!-- <ol class="breadcrumb">
|
||||
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
|
||||
<li>{% trans 'Gallery' %}</li>
|
||||
</ol>
|
||||
</ol> -->
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
{% if messages %}
|
||||
|
@ -2,10 +2,10 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>Os Managers</h1>
|
||||
<ol class="breadcrumb">
|
||||
<!-- <ol class="breadcrumb">
|
||||
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
|
||||
<li>OS Managers</li>
|
||||
</ol>
|
||||
</ol> -->
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
{% if messages %}
|
||||
|
@ -2,10 +2,10 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>{% trans 'Services' %}</h1>
|
||||
<ol class="breadcrumb">
|
||||
<!-- <ol class="breadcrumb">
|
||||
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
|
||||
<li>{% trans 'Services' %}</li>
|
||||
</ol>
|
||||
</ol> -->
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
{% if messages %}
|
||||
|
@ -2,10 +2,10 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>{% trans 'Reports' %}</h1>
|
||||
<ol class="breadcrumb">
|
||||
<!-- <ol class="breadcrumb">
|
||||
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
|
||||
<li>{% trans 'Reports' %}</li>
|
||||
</ol>
|
||||
</ol> -->
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
{% if messages %}
|
||||
|
@ -3,9 +3,9 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>Dashboard <small>{% trans 'overview' %}</small></h1>
|
||||
<ol class="breadcrumb">
|
||||
<!-- <ol class="breadcrumb">
|
||||
<li><a id="lnk-dashboard" href="">Dashboard</a></li>
|
||||
</ol>
|
||||
</ol> -->
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
{% if messages %}
|
||||
|
@ -2,10 +2,10 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>{% trans 'Service Pools' %}</h1>
|
||||
<ol class="breadcrumb">
|
||||
<!-- <ol class="breadcrumb">
|
||||
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
|
||||
<li>{% trans 'Service Pools' %}</li>
|
||||
</ol>
|
||||
</ol> -->
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
{% if messages %}
|
||||
|
Loading…
Reference in New Issue
Block a user