mirror of
https://github.com/Squidly271/community.applications.git
synced 2025-06-03 14:52:13 +08:00
Switch to font awesome for spinner
This commit is contained in:
parent
c351e1422f
commit
b4d9b79256
Binary file not shown.
@ -355,7 +355,7 @@ $(function(){
|
|||||||
|
|
||||||
/* Everything is now initialized. This is the start of the actual "real" code */
|
/* Everything is now initialized. This is the start of the actual "real" code */
|
||||||
|
|
||||||
myAlert("Updating Content","Retrieving the latest application Lists","/plugins/community.applications/images/spinner2.gif","40x40");
|
myAlert("Updating Content","Retrieving the latest application Lists",true,"40");
|
||||||
$.post(URL,{action:'force_update'}, function(data) {
|
$.post(URL,{action:'force_update'}, function(data) {
|
||||||
if (data) {
|
if (data) {
|
||||||
if ( "<?=$pluginInstallPending?>" ) {
|
if ( "<?=$pluginInstallPending?>" ) {
|
||||||
@ -540,7 +540,7 @@ function changePage(pageNumber) {
|
|||||||
var selected = data_selected;
|
var selected = data_selected;
|
||||||
|
|
||||||
myAlert("","Searching");
|
myAlert("","Searching");
|
||||||
$("#Total").html("<img src='/plugins/community.applications/images/spinner2.gif' style='height:30px;width:30px'>");
|
$("#Total").html("<i class='fa fa-spinner fa-spin' style='font-size:20px;color:MediumBlue;' aria-hidden='true'></i>");
|
||||||
$.post(URL,{action:'display_content',sortOrder:sortOrder,windowWidth:windowWidth,pageNumber:pageNumber,maxPerPage:maxPerPage,selected:selected},function(data3) {
|
$.post(URL,{action:'display_content',sortOrder:sortOrder,windowWidth:windowWidth,pageNumber:pageNumber,maxPerPage:maxPerPage,selected:selected},function(data3) {
|
||||||
if (data3) {
|
if (data3) {
|
||||||
$('#templates_content').html(data3);
|
$('#templates_content').html(data3);
|
||||||
@ -561,13 +561,14 @@ function myAlert(description,textdescription,textimage,imagesize, outsideClick,
|
|||||||
if ( !outsideClick ) outsideClick = false;
|
if ( !outsideClick ) outsideClick = false;
|
||||||
if ( !showCancel ) showCancel = false;
|
if ( !showCancel ) showCancel = false;
|
||||||
if ( !showConfirm ) showConfirm = false;
|
if ( !showConfirm ) showConfirm = false;
|
||||||
if ( imagesize == "" ) { imagesize = "80x80"; }
|
if ( imagesize == "" ) { imagesize = "80"; }
|
||||||
disableTooltipster();
|
disableTooltipster();
|
||||||
|
if ( textimage ) {
|
||||||
|
textdescription = textdescription + "<br><br><center><i class='fa fa-spinner fa-spin' style='font-size:"+imagesize+"px;color:MediumBlue;' aria-hidden='true'></i></center>";
|
||||||
|
}
|
||||||
swal({
|
swal({
|
||||||
title: description,
|
title: description,
|
||||||
text: textdescription,
|
text: textdescription,
|
||||||
imageUrl: textimage,
|
|
||||||
imageSize: imagesize,
|
|
||||||
allowOutsideClick: outsideClick,
|
allowOutsideClick: outsideClick,
|
||||||
showConfirmButton: showConfirm,
|
showConfirmButton: showConfirm,
|
||||||
showCancelButton: showCancel,
|
showCancelButton: showCancel,
|
||||||
@ -613,7 +614,7 @@ function doSearch(button) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$("#Total1").show();
|
$("#Total1").show();
|
||||||
$("#Total").html("Searching... <img src='/plugins/community.applications/images/spinner2.gif' style='height:30px;width:30px'>");
|
$("#Total").html("Searching... <i class='fa fa-spinner fa-spin' style='font-size:20px;color:MediumBlue;' aria-hidden='true'></i>");
|
||||||
if (filter) {
|
if (filter) {
|
||||||
$("#Category").html("<?=$categoryTitle?> (Search Results for <font color='red'>"+filter+"</font>)");
|
$("#Category").html("<?=$categoryTitle?> (Search Results for <font color='red'>"+filter+"</font>)");
|
||||||
} else {
|
} else {
|
||||||
@ -633,7 +634,7 @@ function doSearch(button) {
|
|||||||
if ( "<?=$cfg['dockerSearch']?>" == "yes" ) {
|
if ( "<?=$cfg['dockerSearch']?>" == "yes" ) {
|
||||||
$('.dockerSearch').show();
|
$('.dockerSearch').show();
|
||||||
}
|
}
|
||||||
myAlert("Searching...", "Searching for <strong><font color=red>"+filter+"</font></strong>","/plugins/community.applications/images/spinner2.gif","40x40");
|
myAlert("Searching...", "Searching for <strong><font color=red>"+filter+"</font></strong>",true,"40");
|
||||||
|
|
||||||
$.post(URL,{action:'get_content',filter:filter,sortOrder:sortOrder,windowWidth:windowWidth,maxPerPage:maxPerPage},function(data) {
|
$.post(URL,{action:'get_content',filter:filter,sortOrder:sortOrder,windowWidth:windowWidth,maxPerPage:maxPerPage},function(data) {
|
||||||
if (data) {
|
if (data) {
|
||||||
@ -678,7 +679,7 @@ function forceUpdateButton() {
|
|||||||
if ( mode == 'appFeed Mode' ) {
|
if ( mode == 'appFeed Mode' ) {
|
||||||
$.post(URL,{action:'force_update_button'},function(data) {
|
$.post(URL,{action:'force_update_button'},function(data) {
|
||||||
if (data) {
|
if (data) {
|
||||||
myAlert("Updating Content","Retrieving the latest application Lists","/plugins/community.applications/images/spinner2.gif","40x40");
|
myAlert("Updating Content","Retrieving the latest application Lists",true,"40");
|
||||||
forceUpdate();
|
forceUpdate();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -749,7 +750,7 @@ function changeSortOrder(button,buttonClass,previousApps) {
|
|||||||
if ( data_docker ) {
|
if ( data_docker ) {
|
||||||
changeDockerView(button);
|
changeDockerView(button);
|
||||||
} else {
|
} else {
|
||||||
$("#Total").html("Rendering... <img src='/plugins/community.applications/images/spinner2.gif' style='height:30px;width:30px'>");
|
$("#Total").html("Rendering... <i class='fa fa-spinner fa-spin' style='font-size:20px;color:MediumBlue;' aria-hidden='true'></i>");
|
||||||
|
|
||||||
$.post(URL,{action:'display_content',sortOrder:sortOrder,windowWidth:windowWidth,pageNumber:pageNumber,maxPerPage:maxPerPage,selected:selected},function(data3) {
|
$.post(URL,{action:'display_content',sortOrder:sortOrder,windowWidth:windowWidth,pageNumber:pageNumber,maxPerPage:maxPerPage,selected:selected},function(data3) {
|
||||||
if (data3) {
|
if (data3) {
|
||||||
@ -868,7 +869,7 @@ function getContent(init,category,description,newApp) {
|
|||||||
$("#NetworkCategory,#MediaServerCategory,#MediaAppCategory,#NONE,#ToolsCategory,#Total1").hide();
|
$("#NetworkCategory,#MediaServerCategory,#MediaAppCategory,#NONE,#ToolsCategory,#Total1").hide();
|
||||||
$("#MainCategory,#New").show();
|
$("#MainCategory,#New").show();
|
||||||
}
|
}
|
||||||
$("#Total").html("Searching... <img src='/plugins/community.applications/images/spinner2.gif' style='height:30px;width:30px'>");
|
$("#Total").html("Searching... <i class='fa fa-spinner fa-spin' style='font-size:20px;color:MediumBlue;' aria-hidden='true'></i>");
|
||||||
|
|
||||||
if ( (category == "New") || (category == "All") ) { category = ""; }
|
if ( (category == "New") || (category == "All") ) { category = ""; }
|
||||||
|
|
||||||
@ -921,10 +922,10 @@ function dockerSearch(pageNumber) {
|
|||||||
enableIcon("#sortIcon",true);
|
enableIcon("#sortIcon",true);
|
||||||
$(".dockerSearch,#templateSortButtons,.multi_installDiv").hide();
|
$(".dockerSearch,#templateSortButtons,.multi_installDiv").hide();
|
||||||
$("#currentSection").html("Available Apps");
|
$("#currentSection").html("Available Apps");
|
||||||
$("#Total").html("Searching... <img src='/plugins/community.applications/images/spinner2.gif' style='height:30px;width:30px'>");
|
$("#Total").html("Searching... <i class='fa fa-spinner fa-spin' style='font-size:20px;color:MediumBlue;' aria-hidden='true'></i>");
|
||||||
$("#Category").html("DockerHub Search Results For <font color='red'>"+filter+"</font> <span id='pageNumber'></span>");
|
$("#Category").html("DockerHub Search Results For <font color='red'>"+filter+"</font> <span id='pageNumber'></span>");
|
||||||
var sortOrder = getSortOrder();
|
var sortOrder = getSortOrder();
|
||||||
myAlert("Searching dockerHub", "Retrieving <strong><font color=red>"+filter+"</font></strong> page <strong><font color=red>"+pageNumber+"</font></strong>","/plugins/community.applications/images/spinner2.gif","40x40");
|
myAlert("Searching dockerHub", "Retrieving <strong><font color=red>"+filter+"</font></strong> page <strong><font color=red>"+pageNumber+"</font></strong>",true,"40");
|
||||||
$.post(URL,{action:'search_dockerhub',filter:filter,page:pageNumber,sortOrder:sortOrder},function(data) {
|
$.post(URL,{action:'search_dockerhub',filter:filter,page:pageNumber,sortOrder:sortOrder},function(data) {
|
||||||
if (data) {
|
if (data) {
|
||||||
$('#templates_content').html(data);
|
$('#templates_content').html(data);
|
||||||
@ -946,7 +947,7 @@ function authorSearch(author) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function dockerConvert(dockerID) {
|
function dockerConvert(dockerID) {
|
||||||
myAlert("Converting Dockerfile","","/plugins/community.applications/images/spinner2.gif","40x40");
|
myAlert("Converting Dockerfile","",true,"40");
|
||||||
|
|
||||||
totalDisplayed = $("#Total").html();
|
totalDisplayed = $("#Total").html();
|
||||||
$("#Total").html("Converting...");
|
$("#Total").html("Converting...");
|
||||||
@ -1004,7 +1005,7 @@ function previousApps(button,installed) {
|
|||||||
$("#"+button).prop("disabled",true);
|
$("#"+button).prop("disabled",true);
|
||||||
data_section = button;
|
data_section = button;
|
||||||
|
|
||||||
$("#Total").html("Searching... <img src='/plugins/community.applications/images/spinner2.gif' style='height:30px;width:30px'>");
|
$("#Total").html("Searching... <i class='fa fa-spinner fa-spin' style='font-size:20px;color:MediumBlue;' aria-hidden='true'></i>");
|
||||||
$(".dockerSearch,#AppsOnly").hide();
|
$(".dockerSearch,#AppsOnly").hide();
|
||||||
$("#templates_content,#sortButtons,#Total1,#templateSortButtons").show();
|
$("#templates_content,#sortButtons,#Total1,#templateSortButtons").show();
|
||||||
enableIcon("#sortIcon",true);
|
enableIcon("#sortIcon",true);
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 43 KiB |
Loading…
x
Reference in New Issue
Block a user