- [misc] Remove unused css and js files.

This commit is contained in:
liugang
2025-09-15 10:02:06 +08:00
parent 18e5766689
commit 985e56e785
672 changed files with 0 additions and 36102 deletions
-4
View File
@@ -1,4 +0,0 @@
#planForm tr td {vertical-align: top;}
#mainContent .methodTitle, #mainContent .methodTip {display: inline-block; vertical-align: middle;}
.type-list-radio {display: inline-block; padding: 10px 5px;}
#planForm .c-attribute {width: 110px;}
-34
View File
@@ -1,34 +0,0 @@
$(function()
{
setTimeout(function()
{
fixScroll();
}, 500);
})
function fixScroll()
{
var $scrollwrapper = $('div.datatable').first().find('.scroll-wrapper:first');
if($scrollwrapper.size() == 0)return;
var $tfoot = $('div.datatable').first().find('table tfoot:last');
var scrollOffset = $scrollwrapper.offset().top + $scrollwrapper.find('.scroll-slide').height();
if($tfoot.size() > 0) scrollOffset += $tfoot.height();
if($('div.datatable.head-fixed').size() == 0) scrollOffset -= '29';
var windowH = $(window).height();
if(scrollOffset > windowH + $(window).scrollTop()) $scrollwrapper.css({'position': 'fixed', 'bottom': 50 + 'px'});
$(window).scroll(function()
{
newBottom = $tfoot.hasClass('fixedTfootAction') ? 50 + $tfoot.height() : 50;
if(typeof(ssoRedirect) != "undefined") newBottom = 50;
if(scrollOffset <= windowH + $(window).scrollTop())
{
$scrollwrapper.css({'position':'relative', 'bottom': '0px'});
}
else if($scrollwrapper.css('position') != 'fixed')
{
$scrollwrapper.css({'position': 'fixed', 'bottom': newBottom + 'px'});
bottom = newBottom;
}
});
}
-83
View File
@@ -1,83 +0,0 @@
$(function()
{
$('input').on('change', function()
{
$(this).removeClass('has-error');
$(this).closest('td').find('.text-danger.help-text').remove();
});
$('[data-toggle="popover"]').popover();
});
/**
* Add item to create view of programplan.
*
* @param obj obj
* @access public
* @return void
*/
function addItem(obj)
{
var item = $('#addItem').html().replace(/%i%/g, itemIndex);
$(obj).closest('tr').after('<tr class="addedItem">' + item + '</tr>');
var newItem = $('#names' + itemIndex).closest('tr');
newItem.find('.form-date').datepicker();
$("#output" + itemIndex).picker();
$("#PM" + itemIndex).picker();
$("#type" + itemIndex).chosen();
$("#type_i__chosen").remove();
itemIndex ++;
}
/**
* Delete item.
*
* @param obj obj
* @access public
* @return void
*/
function deleteItem(obj)
{
if($('#planForm .table tbody').children().length < 2) return false;
$(obj).closest('tr').remove();
}
/**
* Add row errors.
*
* @param array $rowErrors
* @access public
* @return void
*/
function addRowErrors(rowErrors)
{
var errorFieldID, errorTip, errorHTML;
$('.text-danger.help-text').remove();
$('input').removeClass('has-error');
var index = 0;
var alterError = '';
$('input[name^=names]').each(function()
{
if($(this).val() == '') return true;
if(typeof rowErrors[index] == 'object')
{
for(var errorField in rowErrors[index])
{
$errorTD = $(this).closest('tr').find('input[name^=' + errorField + ']').closest('td');
errorTip = rowErrors[index][errorField];
errorHTML = '<div id="help' + errorField + index + '" class="text-danger help-text">' + errorTip + '</div>';
$errorTD.append(errorHTML);
$errorTD.find('input').addClass('has-error');
}
}
if(typeof rowErrors['percent'] == 'string')
{
errorFieldID = $(this).closest('tr').find('input[name^=percent]').attr('id');
errorHTML = '<div id="help' + errorFieldID + '" class="text-danger help-text">' + rowErrors['percent'] + '</div>';
$('#' + errorFieldID).closest('td').append(errorHTML);
$('#' + errorFieldID).closest('td').find('input').addClass('has-error');
}
index ++;
});
}
-62
View File
@@ -1,62 +0,0 @@
function changeParentStage(stageID)
{
$.get(createLink('programplan', 'ajaxGetAttribute', 'stageID=' + stageID + '&attribute=' + plan.attribute), function(attribute)
{
$('#attributeType td:first').html(attribute);
$("#attribute" + "_chosen").remove();
$("#attribute").next('.picker').remove();
$("#attribute").chosen();
})
}
$(function()
{
$("#parent").change(function()
{
var parent = $(this).children("option:selected").val();
if(parent == 0)
{
$("#acl").attr('disabled', false);
}
else
{
$("#acl").attr('disabled', true);
}
changeParentStage(parent);
});
$('#submit').click(function()
{
if(plan.parent != $('#parent').val() && $('#parent').val() != 0)
{
var result = true;
$.ajaxSettings.async = false;
$.get(createLink('programplan', 'ajaxGetStageAttr', 'stageID=' + $('#parent').val()), function(attribute)
{
if(attribute != 'mix' && plan.attribute != attribute)
{
result = confirm(changeAttrLang.replace('%s', stageTypeList[attribute]));
}
})
$.ajaxSettings.async = true;
if(!result) return false;
}
var currentAttribute = $('#attribute').val();
var currentParent = $('#parent').val();
var hasChangedAttribute = (currentAttribute && currentAttribute != 'mix' && plan.attribute != currentAttribute);
var hasChangedParent = ((isTopStage && $('#parent').val() != 0) || (!isTopStage && plan.parent != $('#parent').val()));
if(hasChangedAttribute && !hasChangedParent && !isLeafStage)
{
var result = confirm(changeAttrLang.replace('%s', stageTypeList[currentAttribute]));
if(!result) return false;
}
})
$('[data-toggle="popover"]').popover();
})