mirror of
https://github.com/TryGhost/Ghost.git
synced 2023-12-13 21:00:40 +01:00
Merge pull request #2558 from sebgie/build-fix
Remove second PUT request on image save
This commit is contained in:
commit
605d59304c
1 changed files with 4 additions and 14 deletions
|
@ -220,14 +220,8 @@
|
|||
} else {
|
||||
data[key] = this.$('.js-upload-target').attr('src');
|
||||
}
|
||||
|
||||
self.model.save(data, {
|
||||
success: self.saveSuccess,
|
||||
error: self.saveError
|
||||
}).then(function () {
|
||||
self.model.set(data);
|
||||
self.saveSettings();
|
||||
});
|
||||
|
||||
return true;
|
||||
},
|
||||
buttonClass: "button-save right",
|
||||
|
@ -298,12 +292,8 @@
|
|||
} else {
|
||||
data[key] = this.$('.js-upload-target').attr('src');
|
||||
}
|
||||
self.model.save(data, {
|
||||
success: self.saveSuccess,
|
||||
error: self.saveError
|
||||
}).then(function () {
|
||||
self.saveUser();
|
||||
});
|
||||
self.model.set(data);
|
||||
self.saveUser(data);
|
||||
return true;
|
||||
},
|
||||
buttonClass: "button-save right",
|
||||
|
|
Loading…
Reference in a new issue