Skip to content

Commit

Permalink
Return both sourcephrase.create() success and fail
Browse files Browse the repository at this point in the history
  • Loading branch information
eb1 committed Aug 26, 2024
1 parent 679b048 commit 36b1759
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions www/js/models/sql/sourcephrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,13 @@ define(function (require) {
switch (method) {
case 'create':
// model.create();
$.when(model.create()).done(function() {
$.when(model.create())
.done(function() {
options.success(model);
});
})
.fail(function() {
options.error;
});
break;

case 'read':
Expand Down

0 comments on commit 36b1759

Please sign in to comment.