- [misc] Remove unused css and js files.
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
.c-name,.c-status,.c-progress,.c-osName{width: 130px;}
|
||||
.main-header-image{border:none;margin-left: 0!important;padding-left:0;}
|
||||
.body-modal #mainContent{padding-top: 85px; padding-bottom: 50px;}
|
||||
.dropdown-menu>li>a {margin: 1px 0;}
|
||||
@@ -1,3 +0,0 @@
|
||||
#unit {padding: 0px !important; width:0px; border-left: 0px;}
|
||||
.input-group-addon {border: 0px;}
|
||||
#unit_chosen a {border-left: 0px; border-radius: 0 2px;}
|
||||
@@ -1,2 +0,0 @@
|
||||
span#unit {padding: 0px !important; width: 0px;}
|
||||
#unit {border-left: 0px;}
|
||||
@@ -1,2 +0,0 @@
|
||||
#hostsTreemap {white-space: nowrap;}
|
||||
#mainMenu {padding-bottom: .75rem; padding-top: .75rem;}
|
||||
@@ -1 +0,0 @@
|
||||
.outer .main .table tr > th:first-child, .outer .main .table tr > td:first-child { padding-left: 10px; }
|
||||
@@ -1,60 +0,0 @@
|
||||
var interval;
|
||||
|
||||
$(function () {
|
||||
updateProgressInterval();
|
||||
});
|
||||
|
||||
function updateProgressInterval() {
|
||||
updateProgress();
|
||||
interval = setInterval(function ()
|
||||
{
|
||||
updateProgress();
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
function updateProgress() {
|
||||
$.get(createLink('zahost', 'ajaxImageDownloadProgress', 'hostID=' + hostID)).done(function (response)
|
||||
{
|
||||
var result = JSON.parse(response);
|
||||
var statusList = result.data;
|
||||
|
||||
var hasInprogress = false;
|
||||
for (var imageID in statusList) {
|
||||
if (statusList[imageID].statusCode) {
|
||||
if (statusList[imageID].statusCode == 'inprogress' || statusList[imageID].statusCode == 'created' || statusList[imageID].statusCode == 'pending')
|
||||
{
|
||||
hasInprogress = true;
|
||||
$('.image-download-' + imageID).addClass('disabled');
|
||||
$('.image-cancel-' + imageID).removeClass('disabled');
|
||||
}
|
||||
else if (statusList[imageID].statusCode == 'completed')
|
||||
{
|
||||
$('.image-path-' + imageID).text(statusList[imageID].path);
|
||||
$('.image-path-' + imageID).attr('title', statusList[imageID].path);
|
||||
$('.image-download-' + imageID).addClass('disabled');
|
||||
$('.image-cancel-' + imageID).addClass('disabled');
|
||||
$('.image-cancel-' + imageID).attr('href', '#');
|
||||
$('.image-progress-' + imageID).text("100%");
|
||||
}
|
||||
else
|
||||
{
|
||||
var link = createLink('zahost', 'downloadImage', "hostID="+hostID+"&imageID="+imageID);
|
||||
$('.image-download-' + imageID).removeClass('disabled');
|
||||
$('.image-download-' + imageID).attr('href', link);
|
||||
$('.image-cancel-' + imageID).addClass('disabled');
|
||||
$('.image-cancel-' + imageID).attr('href', '#');
|
||||
$('.image-progress-' + imageID).text('');
|
||||
}
|
||||
$('.image-status-' + imageID).text(statusList[imageID].status);
|
||||
if(statusList[imageID].progress != '' && statusList[imageID].statusCode != 'completed')
|
||||
{
|
||||
$('.image-progress-' + imageID).text(statusList[imageID].progress);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!hasInprogress)
|
||||
{
|
||||
clearInterval(interval)
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
$(document).ready(function(){
|
||||
$('#osName').change(function(){
|
||||
var selectVal = $('#osName').val();
|
||||
$.get(createLink('host', 'ajaxGetOSVersion', 'field=' + selectVal), function(data)
|
||||
{
|
||||
$('select#osVersion').replaceWith(data);
|
||||
$('#osVersion_chosen').remove();
|
||||
$("select#osVersion").chosen();
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -1,20 +0,0 @@
|
||||
$(document).ready(function(){
|
||||
/* Change the operating system. */
|
||||
$('#osName').change(function(){
|
||||
var selectVal = $('#osName').val();
|
||||
$.get(createLink('host', 'ajaxGetOSVersion', 'field=' + selectVal), function(data)
|
||||
{
|
||||
$('select#osVersion').replaceWith(data);
|
||||
$('#osVersion_chosen').remove();
|
||||
$("select#osVersion").chosen();
|
||||
});
|
||||
});
|
||||
|
||||
var width = $("[name='unit']").css('width');
|
||||
width = parseInt(width);
|
||||
if(width < 74)
|
||||
{
|
||||
$("[name='unit']").css({'width': '74px'});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user