mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
fixes few Hound alerts
This commit is contained in:
parent
27b7aff3ea
commit
78e902f316
1 changed files with 4 additions and 2 deletions
|
@ -451,8 +451,9 @@ var RepositoryDatatable = (function(global) {
|
|||
});
|
||||
|
||||
$('#assigned-repo-records').on('click', function() {
|
||||
var promiseReload;
|
||||
viewAssigned = 'assigned';
|
||||
var promiseReload = new Promise(function(resolve) {
|
||||
promiseReload = new Promise(function(resolve) {
|
||||
resolve(TABLE.ajax.reload());
|
||||
});
|
||||
promiseReload.then(function() {
|
||||
|
@ -460,8 +461,9 @@ var RepositoryDatatable = (function(global) {
|
|||
})
|
||||
});
|
||||
$('#all-repo-records').on('click', function() {
|
||||
var promiseReload;
|
||||
viewAssigned = 'all';
|
||||
var promiseReload = new Promise(function(resolve) {
|
||||
promiseReload = new Promise(function(resolve) {
|
||||
resolve(TABLE.ajax.reload());
|
||||
});
|
||||
promiseReload.then(function() {
|
||||
|
|
Loading…
Reference in a new issue