Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Updated and fixed some cosmetic bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell Urgero committed Dec 14, 2016
1 parent e5da5a1 commit be829af
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Binary file added files/com.uberspot.a2048_23.apk
Binary file not shown.
13 changes: 12 additions & 1 deletion public/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
load(false);
}
}).fail(function(e) {
load(false);
document.getElementById("page-wrapper").innerHTML = "Loading the page failed. Please try again.";
genModal("Error", "Loading the page failed. Please try again.");
load(false);

});
}
function load(type){
Expand Down Expand Up @@ -46,6 +47,7 @@ function getDevices(){
load(false);
}
}).fail(function(e) {
load(false);
document.getElementById("devices").innerHTML = "Loading the devices failed. Please try again.";
genModal("Error", "<pre>" + e.toString() + "</pre>");
load(false);
Expand All @@ -65,6 +67,7 @@ function installAPK(){
load(false);
}
}).fail(function(e) {
load(false);
genModal("Error", "<pre>" + e.toString() + "</pre>");
load(false);
});
Expand All @@ -84,6 +87,7 @@ function setDevice(serialno){
load(false);
}
}).fail(function(e) {
load(false);
genModal("Error", "<pre>" + e.toString() + "</pre>");
load(false);
});
Expand All @@ -104,6 +108,7 @@ function customCommand(){
load(false);
}
}).fail(function(e) {
load(false);
genModal("Error", "<pre>" + e.Message + "</pre>");
load(false);
});
Expand All @@ -122,6 +127,7 @@ function reboot(type){
load(false);
}
}).fail(function(e) {
load(false);
genModal("Error", "<pre>" + e.Message + "</pre>");
load(false);
});
Expand All @@ -140,6 +146,7 @@ function installAPK(filename){
load(false);
}
}).fail(function(e) {
load(false);
genModal("Error", "<pre>" + e.Message + "</pre>");
load(false);
});
Expand All @@ -161,6 +168,7 @@ function getProp(){
load(false);
}
}).fail(function(e) {
load(false);
genModal("Error", "<pre>" + e.Message + "</pre>");
load(false);
});
Expand All @@ -182,6 +190,7 @@ function getAPKS(){
load(false);
}
}).fail(function(e) {
load(false);
genModal("Error", "<pre>" + e.Message + "</pre>");
load(false);
});
Expand All @@ -201,6 +210,7 @@ function twrpCom(command){
load(false);
}
}).fail(function(e) {
load(false);
genModal("Error", "<pre>" + e.Message + "</pre>");
load(false);
});
Expand All @@ -209,4 +219,5 @@ function genModal(head, body){
document.getElementById("genModalHeader").innerHTML = head;
document.getElementById("genModalBody").innerHTML = body;
$("#genModal").modal('show');
load(false);
}
2 changes: 1 addition & 1 deletion public/pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h3>Connected devices: &nbsp; <button class="btn btn-sm btn-info" onclick="getDe
</div>
<!-- /#wrapper -->
<!--<div id="coverlay"></div>-->
<div class="loading" id="loadAnim">Loading&#8230;</div>
<div class="loading" id="loadAnim">Loading&#8230;<br><a href="./">Failed to load? Click here.</a></div>
<!-- jQuery -->
<script src="../vendor/jquery/jquery.min.js"></script>

Expand Down

0 comments on commit be829af

Please sign in to comment.