mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
fixes typo
This commit is contained in:
parent
eb75f6c03d
commit
0dbd2dc877
1 changed files with 5 additions and 5 deletions
|
@ -393,7 +393,7 @@ var RepositoryDatatable = (function(global) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkAvailibleColumns() {
|
function checkAvailableColumns() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: $(TABLE_ID).data('available-columns'),
|
url: $(TABLE_ID).data('available-columns'),
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
|
@ -414,7 +414,7 @@ var RepositoryDatatable = (function(global) {
|
||||||
}
|
}
|
||||||
|
|
||||||
global.onClickAddRecord = function() {
|
global.onClickAddRecord = function() {
|
||||||
checkAvailibleColumns();
|
checkAvailableColumns();
|
||||||
changeToEditMode();
|
changeToEditMode();
|
||||||
updateButtons();
|
updateButtons();
|
||||||
|
|
||||||
|
@ -628,7 +628,7 @@ var RepositoryDatatable = (function(global) {
|
||||||
|
|
||||||
// Edit record
|
// Edit record
|
||||||
global.onClickEdit = function() {
|
global.onClickEdit = function() {
|
||||||
checkAvailibleColumns();
|
checkAvailableColumns();
|
||||||
if (rowsSelected.length !== 1) {
|
if (rowsSelected.length !== 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1264,7 +1264,7 @@ var RepositoryDatatable = (function(global) {
|
||||||
loadColumnsNames();
|
loadColumnsNames();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$('.sorting').on('click', checkAvailibleColumns);
|
$('.sorting').on('click', checkAvailableColumns);
|
||||||
}
|
}
|
||||||
|
|
||||||
// calculate the max height of window and adjust dropdown max-height
|
// calculate the max height of window and adjust dropdown max-height
|
||||||
|
@ -1298,7 +1298,7 @@ var RepositoryDatatable = (function(global) {
|
||||||
$('#repository-columns-dropdown').on('show.bs.dropdown', function() {
|
$('#repository-columns-dropdown').on('show.bs.dropdown', function() {
|
||||||
loadColumnsNames();
|
loadColumnsNames();
|
||||||
dropdownList.sortable('enable');
|
dropdownList.sortable('enable');
|
||||||
checkAvailibleColumns();
|
checkAvailableColumns();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#repository-columns-dropdown').on('shown.bs.dropdown', function() {
|
$('#repository-columns-dropdown').on('shown.bs.dropdown', function() {
|
||||||
|
|
Loading…
Reference in a new issue