mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-22 13:34:04 +03:00
Fixed authenticators details tab change bug
This commit is contained in:
parent
366d340fd4
commit
bf66bb1009
@ -17,8 +17,8 @@ gui.authenticators.link = (event) ->
|
||||
$tbl = $(detailLogTable).dataTable()
|
||||
$tbl.fnClearTable()
|
||||
$tbl.fnDestroy()
|
||||
$("#user-log-placeholder").empty()
|
||||
detailLogTable = undefined
|
||||
$("#users-log-placeholder").empty()
|
||||
return
|
||||
|
||||
|
||||
@ -26,13 +26,14 @@ gui.authenticators.link = (event) ->
|
||||
# Memory saver :-)
|
||||
prevTables = []
|
||||
clearDetails = ->
|
||||
clearDetailLog()
|
||||
|
||||
$.each prevTables, (undefined_, tbl) ->
|
||||
$tbl = $(tbl).dataTable()
|
||||
$tbl.fnClearTable()
|
||||
$tbl.fnDestroy()
|
||||
return
|
||||
|
||||
clearDetailLog()
|
||||
$("#users-placeholder").empty()
|
||||
$("#groups-placeholder").empty()
|
||||
$("#logs-placeholder").empty()
|
||||
@ -260,6 +261,7 @@ gui.authenticators.link = (event) ->
|
||||
container: "users-placeholder"
|
||||
rowSelect: "single"
|
||||
onRowSelect: (uselected) ->
|
||||
gui.doLog 'User row selected ', uselected
|
||||
gui.tools.blockUI()
|
||||
uId = uselected[0].id
|
||||
clearDetailLog()
|
||||
@ -284,7 +286,8 @@ gui.authenticators.link = (event) ->
|
||||
return
|
||||
|
||||
onRefresh: ->
|
||||
$("#users-log-placeholder").empty() # Remove logs on detail refresh
|
||||
gui.doLog "Refreshing"
|
||||
clearDetailLog()
|
||||
return
|
||||
|
||||
onEdit: (value, event, table, refreshFnc) ->
|
||||
|
@ -44,12 +44,9 @@
|
||||
</div>
|
||||
|
||||
<script src="{% url 'uds.web.views.jsCatalog' LANGUAGE_CODE %}"></script>
|
||||
|
||||
<script src="{% get_static_prefix %}adm/js/jquery-2.0.3.min.js"></script>
|
||||
|
||||
<script>
|
||||
// Initialize a few settings, needed for api to work
|
||||
(function(api, $, undefined){
|
||||
(function(api){
|
||||
api.config = {
|
||||
token: "{% auth_token %}",
|
||||
auth_header: "{% auth_token_header %}",
|
||||
@ -58,12 +55,15 @@
|
||||
template_url: "{% url 'uds.admin.views.tmpl' '' %}",
|
||||
img_url: "{% get_static_prefix %}adm/img/",
|
||||
};
|
||||
}(window.api = window.api || {}, jQuery));
|
||||
}(window.api = window.api || {}));
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
{% compress js %}
|
||||
<!-- minified js from: 'jquery.cookie', 'bootstrap.min', 'bootstrap-switch.min', 'bootstrap-select.min', 'jquery.validate.min', 'jquery.blockUI', 'flot',
|
||||
<!-- minified js from: 'jquery', 'jquery.cookie', 'bootstrap.min', 'bootstrap-switch.min', 'bootstrap-select.min', 'jquery.validate.min', 'jquery.blockUI', 'flot',
|
||||
'jquery.dataTables.min', 'TableTools.min', 'Blob', 'FileSaver', 'ZeroClipboard', 'dataTables.bootstrap', 'handlebars-v1.1.2', UDS admin JS's -->
|
||||
<script src="{% get_static_prefix %}adm/js/jquery-2.0.3.min.js"></script>
|
||||
<script src="{% get_static_prefix %}adm/js/jquery.cookie.js"></script>
|
||||
<script src="{% get_static_prefix %}adm/js/bootstrap.min.js"></script>
|
||||
<script src="{% get_static_prefix %}adm/js/bootstrap-switch.min.js"></script>
|
||||
|
Loading…
Reference in New Issue
Block a user