mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Code cleanup
SVN:trunk[5973]
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
{
|
||||
$('#brick_mosaic_overlay').hide();
|
||||
$("#brick_content_mosaic").show();
|
||||
}
|
||||
};
|
||||
// Show the requested level
|
||||
var showLevel = function(sLevelAlias, sItemId)
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -225,7 +225,7 @@
|
||||
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
});
|
||||
|
||||
showTableLoader($('#table-{{ sAreaId }}'));
|
||||
var oTable{{ sAreaId }} = $('#table-{{ sAreaId }}').DataTable({
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -104,6 +104,8 @@ function ExportRun(data) {
|
||||
$('#export-error').html(data.message);
|
||||
$('#export-cancel').hide();
|
||||
$('#export-close').show();
|
||||
break;
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user