Changed discovery steps navigation bar to use jQuery icon instead of "->"

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10491 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2011-09-09 20:24:26 +00:00
parent 88f3295da3
commit 177a2971fb

View File

@ -62,16 +62,18 @@ function loadDiscoverPage(){
*/
function updateDiscoverStep(){
$('#discoverStepDiv').empty();
var showString = '';
for (var index in steps){
showString += '<span';
if (currentStep == index){
showString += ' class="discovercurrentstep"';
$('#discoverStepDiv').append($('<span class="discovercurrentstep" style="display: inline-block; float: none; padding: 0px 5px;">' + steps[index] + '</span>'));
} else {
$('#discoverStepDiv').append($('<span style="display: inline-block; float: none; padding: 0px 5px;">' + steps[index] + '</span>'));
}
showString += '>' + steps[index] + '</span>->';
$('#discoverStepDiv').append($('<span style="display: inline-block; float: none; vertical-align: middle;" class="ui-icon ui-icon-arrowthick-1-e"/>'));
}
showString = showString.substr(0, showString.length - 2);
$('#discoverStepDiv').html(showString);
//remove last arrow
$('#discoverStepDiv span:last-child').remove();
}
/**