Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var onSuccess = function(producer) {
var msg = producer.get('name') + " was successfully added.";
console.log(msg);
Notify.success(msg);
//self.transitionTo('producer', producer);
};
var onSuccess = function() {
var msg = "Casting was successfully added to anime";
console.log(msg);
Notify.success(msg);
//self.transitionTo('character', character);
};
var onSuccess = function(character) {
var msg = character.get('first_name') + " " + character.get('last_name') + " was successfully saved.";
console.log(msg);
Notify.success(msg);
};
var onSuccess = function(person) {
var msg = person.get('first_name') + " " + person.get('last_name') + " was successfully saved.";
console.log(msg);
Notify.success(msg);
};
var onSuccess = function(anime) {
var msg = anime.get('title') + " was successfully added.";
console.log(msg);
Notify.success(msg);
self.transitionToRoute('anime', anime);
};
var onSuccess = function() {
var msg = "Casting was successfully added to anime";
console.log(msg);
Notify.success(msg);
//self.transitionTo('character', character);
};
$.post('/api/v1/requestInvite', {email: email, username: username}, function(data) {
if (data.username) {
console.log(data.username[0]);
Notify.warning(data.username[0]);
}
if (data.email) {
Notify.warning(data.email[0]);
}
if ( data === undefined || data === '' ) {
Notify.success('Invite request received.');
}
}).fail(function() {
Notify.warning('Something went wrong, invite request was not received.');
var onSuccess = function() {
var msg = "Status Updated";
console.log(msg);
Notify.success(msg);
};
$.post('/api/v1/requestInvite', {email: email, username: username}, function(data) {
if (data.username) {
Notify.warning(data.username);
}
if (data.email) {
Notify.warning(data.email);
}
if ( data === undefined || data === '' ) {
Notify.success('Invite request received.');
}
}).fail(function() {
Notify.warning('Something went wrong, invite request was not received.');
.then(function() {
Notify.success('Job deleted');
})
.catch(function(err) {