mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 12:48:49 +01:00
Use Popup.back() instead of Popup.close() to get no conflicts if a Popup is opened as "Sub Popup"
- .back() is also .close() if there is no "popup layer" left
This commit is contained in:
parent
a59dfa8fc0
commit
b9250e4be4
17 changed files with 82 additions and 82 deletions
|
|
@ -562,7 +562,7 @@ Template.editOrgPopup.events({
|
|||
);
|
||||
}
|
||||
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -606,7 +606,7 @@ Template.editTeamPopup.events({
|
|||
);
|
||||
}
|
||||
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -721,7 +721,7 @@ Template.editUserPopup.events({
|
|||
} else {
|
||||
usernameMessageElement.hide();
|
||||
emailMessageElement.hide();
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
}
|
||||
},
|
||||
);
|
||||
|
|
@ -735,7 +735,7 @@ Template.editUserPopup.events({
|
|||
}
|
||||
} else {
|
||||
usernameMessageElement.hide();
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
}
|
||||
});
|
||||
} else if (isChangeEmail) {
|
||||
|
|
@ -752,11 +752,11 @@ Template.editUserPopup.events({
|
|||
}
|
||||
} else {
|
||||
emailMessageElement.hide();
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
}
|
||||
},
|
||||
);
|
||||
} else Popup.close();
|
||||
} else Popup.back();
|
||||
},
|
||||
'click #addUserOrg'(event) {
|
||||
event.preventDefault();
|
||||
|
|
@ -891,7 +891,7 @@ Template.newOrgPopup.events({
|
|||
orgWebsite,
|
||||
orgIsActive,
|
||||
);
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -917,7 +917,7 @@ Template.newTeamPopup.events({
|
|||
teamWebsite,
|
||||
teamIsActive,
|
||||
);
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -990,11 +990,11 @@ Template.newUserPopup.events({
|
|||
} else {
|
||||
usernameMessageElement.hide();
|
||||
emailMessageElement.hide();
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
}
|
||||
},
|
||||
);
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
},
|
||||
'click #addUserOrgNewUser'(event) {
|
||||
event.preventDefault();
|
||||
|
|
@ -1048,7 +1048,7 @@ Template.settingsOrgPopup.events({
|
|||
return;
|
||||
}
|
||||
Org.remove(this.orgId);
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -1066,7 +1066,7 @@ Template.settingsTeamPopup.events({
|
|||
return;
|
||||
}
|
||||
Team.remove(this.teamId);
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -1099,7 +1099,7 @@ Template.settingsUserPopup.events({
|
|||
//
|
||||
//
|
||||
*/
|
||||
Popup.close();
|
||||
Popup.back();
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue