|
|
@@ -91,6 +91,9 @@ $(document).ready(function() {
|
|
|
var thisTr = this;
|
|
|
|
|
|
if(this.attributes.length > 0) {
|
|
|
+ if($(this).children("td:first").children().length > 0) {
|
|
|
+ $(this).children("td:first").children().remove();
|
|
|
+ }
|
|
|
addSpinner($(this).children("td:first"));
|
|
|
$.getJSON("ajax.php?action=getMailboxStatus&mailboxId=" + $(this).attr("data-mailbox-id"), function(r) {
|
|
|
if(r['connected'] == true) {
|
|
|
@@ -105,6 +108,14 @@ $(document).ready(function() {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ function settingsListener() {
|
|
|
+ $(document).on("click", "#refresh-mailaccounts", function(e) {
|
|
|
+ e.preventDefault();
|
|
|
+ getMailboxStatus();
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
function newDocumentListener() {
|
|
|
$(document).on("change", ".fancybox-inner select", function(e) {
|
|
|
reloadDraftVars();
|
|
|
@@ -352,6 +363,7 @@ $(document).ready(function() {
|
|
|
switch(getUrlGetParameter("action")) {
|
|
|
case 'settings':
|
|
|
getMailboxStatus();
|
|
|
+ settingsListener();
|
|
|
break;
|
|
|
case 'manage-label':
|
|
|
loadBox('.manage-mailboxfolder', function() {});
|