Merge pull request #3071 from kensible/2860-label-deletion-pagination

Deleting label passes current page number for pagination
This commit is contained in:
kensible
2016-07-22 08:05:06 -04:00
committed by GitHub

View File

@@ -63,13 +63,13 @@ export default
Rest.setUrl(url); Rest.setUrl(url);
Rest.post({"disassociate": true, "id": labelId}) Rest.post({"disassociate": true, "id": labelId})
.success(function () { .success(function () {
scope.search("job_template"); scope.search("job_template", scope.$parent.job_template_page);
Wait('stop'); Wait('stop');
}) })
.error(function (data, status) { .error(function (data, status) {
Wait('stop'); Wait('stop');
ProcessErrors(scope, data, status, null, { hdr: 'Error!', ProcessErrors(scope, data, status, null, { hdr: 'Error!',
msg: 'Could not disacssociate label from JT. Call to ' + url + ' failed. DELETE returned status: ' + status }); msg: 'Could not disassociate label from JT. Call to ' + url + ' failed. DELETE returned status: ' + status });
}); });
}; };
@@ -93,6 +93,7 @@ export default
scope.count = null; scope.count = null;
} }
}); });
} }
}; };
} }