mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Tasks score notes (#8507)
* Added setting and modal for score notes * Added persistent score notes * Fixed linting issues and documented new field * Added max length to task score notes * Added check for score notes existence * Combined tasks perferences
This commit is contained in:
@@ -205,7 +205,7 @@ angular.module('habitrpg')
|
||||
},
|
||||
|
||||
allocate: function (data) {
|
||||
callOpsFunctionAndRequest('allocate', 'allocate', "POST",'', data);
|
||||
callOpsFunctionAndRequest('allocate', 'allocate', "POST", '', data);
|
||||
},
|
||||
|
||||
allocateNow: function () {
|
||||
@@ -243,7 +243,8 @@ angular.module('habitrpg')
|
||||
return;
|
||||
}
|
||||
|
||||
Tasks.scoreTask(data.params.task._id, data.params.direction).then(function (res) {
|
||||
Tasks.scoreTask(data.params.task._id, data.params.direction, data.body)
|
||||
.then(function (res) {
|
||||
var tmp = res.data.data._tmp || {}; // used to notify drops, critical hits and other bonuses
|
||||
var crit = tmp.crit;
|
||||
var drop = tmp.drop;
|
||||
|
||||
Reference in New Issue
Block a user