Further JS fixes
This commit is contained in:
parent
278c28f350
commit
e2992d08bb
2 changed files with 6 additions and 1 deletions
|
@ -84,7 +84,7 @@ function createOrganizationTeam(ApiService, orgname, teamname, callback) {
|
||||||
'teamname': teamname
|
'teamname': teamname
|
||||||
};
|
};
|
||||||
|
|
||||||
ApiService.updateOrganizationTeam(data, params).then(callback, function() {
|
ApiService.updateOrganizationTeam(data, params).then(callback, function(resp) {
|
||||||
bootbox.dialog({
|
bootbox.dialog({
|
||||||
"message": resp.data ? resp.data : 'The team could not be created',
|
"message": resp.data ? resp.data : 'The team could not be created',
|
||||||
"title": "Cannot create team",
|
"title": "Cannot create team",
|
||||||
|
|
|
@ -4,11 +4,16 @@ $.fn.clipboardCopy = function() {
|
||||||
clip.on('complete', function() {
|
clip.on('complete', function() {
|
||||||
// Resets the animation.
|
// Resets the animation.
|
||||||
var elem = $('#clipboardCopied')[0];
|
var elem = $('#clipboardCopied')[0];
|
||||||
|
if (!elem) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
elem.style.display = 'none';
|
elem.style.display = 'none';
|
||||||
elem.classList.remove('animated');
|
elem.classList.remove('animated');
|
||||||
|
|
||||||
// Show the notification.
|
// Show the notification.
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
if (!elem) { return; }
|
||||||
elem.style.display = 'inline-block';
|
elem.style.display = 'inline-block';
|
||||||
elem.classList.add('animated');
|
elem.classList.add('animated');
|
||||||
}, 10);
|
}, 10);
|
||||||
|
|
Reference in a new issue