Deleting label passes current page number for pagination

This commit is contained in:
Ken Hoes 2016-07-21 11:37:16 -04:00
parent 9f75635ea7
commit fbed0ac03b

View File

@ -63,13 +63,13 @@ export default
Rest.setUrl(url);
Rest.post({"disassociate": true, "id": labelId})
.success(function () {
scope.search("job_template");
scope.search("job_template", scope.$parent.job_template_page);
Wait('stop');
})
.error(function (data, status) {
Wait('stop');
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;
}
});
}
};
}