Merge branch 'fronkdev' into 'master'
Added autoupdate to vodia switcher See merge request fronk/thetool!1486
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
/* Vodia Outbound Identity */
|
/* Vodia Outbound Identity */
|
||||||
|
|
||||||
|
var vodia_identity_switcher_timer;
|
||||||
var vodia_identity = null;
|
var vodia_identity = null;
|
||||||
|
|
||||||
getVodiaIdentity();
|
getVodiaIdentity();
|
||||||
|
|
||||||
async function getVodiaIdentity() {
|
async function getVodiaIdentity() {
|
||||||
|
clearTimeout(vodia_identity_switcher_timer);
|
||||||
|
|
||||||
if(!$("#vodia-identity-switcher .phone-icon").hasClass("fa-spin")) {
|
if(!$("#vodia-identity-switcher .phone-icon").hasClass("fa-spin")) {
|
||||||
$("#vodia-identity-switcher .phone-icon").addClass("fa-spin text-warning");
|
$("#vodia-identity-switcher .phone-icon").addClass("fa-spin text-warning");
|
||||||
@@ -104,6 +106,8 @@ async function getVodiaIdentity() {
|
|||||||
$("#vodia-identity-switcher .phone-icon").addClass("fa-bounce");
|
$("#vodia-identity-switcher .phone-icon").addClass("fa-bounce");
|
||||||
setTimeout(() => { $("#vodia-identity-switcher .phone-icon").removeClass("fa-bounce"); }, 800);
|
setTimeout(() => { $("#vodia-identity-switcher .phone-icon").removeClass("fa-bounce"); }, 800);
|
||||||
|
|
||||||
|
vodia_identity_switcher_timer = setTimeout(() => {getVodiaIdentity()}, 30000); //
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function addVodiaIdentityListItem(number, number_display, name, color) {
|
function addVodiaIdentityListItem(number, number_display, name, color) {
|
||||||
|
|||||||
Reference in New Issue
Block a user