From 0dbd2dc877eea94db664e59c421a976728012c0f Mon Sep 17 00:00:00 2001 From: zmagod Date: Fri, 29 Jun 2018 10:29:39 +0200 Subject: [PATCH] fixes typo --- .../repositories/repository_datatable.js.erb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/repositories/repository_datatable.js.erb b/app/assets/javascripts/repositories/repository_datatable.js.erb index a054459ee..f01d74bfa 100644 --- a/app/assets/javascripts/repositories/repository_datatable.js.erb +++ b/app/assets/javascripts/repositories/repository_datatable.js.erb @@ -393,7 +393,7 @@ var RepositoryDatatable = (function(global) { } } - function checkAvailibleColumns() { + function checkAvailableColumns() { $.ajax({ url: $(TABLE_ID).data('available-columns'), type: 'GET', @@ -414,7 +414,7 @@ var RepositoryDatatable = (function(global) { } global.onClickAddRecord = function() { - checkAvailibleColumns(); + checkAvailableColumns(); changeToEditMode(); updateButtons(); @@ -628,7 +628,7 @@ var RepositoryDatatable = (function(global) { // Edit record global.onClickEdit = function() { - checkAvailibleColumns(); + checkAvailableColumns(); if (rowsSelected.length !== 1) { return; } @@ -1264,7 +1264,7 @@ var RepositoryDatatable = (function(global) { loadColumnsNames(); } }); - $('.sorting').on('click', checkAvailibleColumns); + $('.sorting').on('click', checkAvailableColumns); } // 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() { loadColumnsNames(); dropdownList.sortable('enable'); - checkAvailibleColumns(); + checkAvailableColumns(); }); $('#repository-columns-dropdown').on('shown.bs.dropdown', function() {