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:
Keith Holliday
2017-02-27 14:56:34 -07:00
committed by GitHub
parent 68a042cdb9
commit 93befcebcc
12 changed files with 102 additions and 9 deletions

View File

@@ -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;