Code cleanup

SVN:trunk[5973]
This commit is contained in:
Guillaume Lajarige
2018-07-25 07:23:52 +00:00
parent d0322b471d
commit e71ad536a9
15 changed files with 102 additions and 71 deletions

View File

@@ -49,7 +49,7 @@
{
$('#brick_mosaic_overlay').hide();
$("#brick_content_mosaic").show();
}
};
// Show the requested level
var showLevel = function(sLevelAlias, sItemId)
{

View File

@@ -48,7 +48,7 @@
var sNodeCollapsedClass = 'glyphicon-menu-right';
var sNodeExpandedClass = 'glyphicon-menu-down';
var sNodeLoadingClass = 'glyphicon-refresh keep-spinning';
var iSearchDelay = 500
var iSearchDelay = 500;
var sBrowseMode = '{{ sBrowseMode }}';
var oLevelsProperties = {{ aLevelsProperties|raw }};
var oRawDatas = {{ aItems|raw }};
@@ -76,7 +76,7 @@
{
$('#brick_tree_overlay').hide();
$("#brick_content_tree").show();
}
};
// Registers the toggle listeners on the tree nodes. Used after every AJAX calls.
var registerToggleListeners = function()
{

View File

@@ -225,7 +225,7 @@
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
});
showTableLoader($('#table-{{ sAreaId }}'));
var oTable{{ sAreaId }} = $('#table-{{ sAreaId }}').DataTable({

View File

@@ -397,11 +397,11 @@
return false;
}
return true;
}
};
var GetContentLoaderTemplate = function()
{
return '<div class="content_loader"><div class="icon glyphicon glyphicon-refresh"></div><div class="message">{{ 'Page:PleaseWait'|dict_s }}</div></div>';
}
};
var ShowLoginDialog = function()
{
var oModalElem = $('#modal-for-alert').clone();

View File

@@ -104,6 +104,8 @@ function ExportRun(data) {
$('#export-error').html(data.message);
$('#export-cancel').hide();
$('#export-close').show();
break;
default:
}
}

View File

@@ -10,7 +10,7 @@ $(function()
options:
{
on_validation_callback: function(me, oResult){
me.element.removeClass('has-success has-warning has-error')
me.element.removeClass('has-success has-warning has-error');
me.element.find('.help-block').html('');
if(!oResult.is_valid)
{