diff --git a/app/assets/javascripts/repositories/repository_datatable.js b/app/assets/javascripts/repositories/repository_datatable.js index cfda60c47..6b8c4a2df 100644 --- a/app/assets/javascripts/repositories/repository_datatable.js +++ b/app/assets/javascripts/repositories/repository_datatable.js @@ -11,7 +11,7 @@ var RepositoryDatatable = (function(global) { 'use strict'; var TABLE_ID = ''; - var TABLE_WRAPPER = '.repository-table'; + var TABLE_WRAPPER_ID = '.repository-table'; var TABLE = null; var EDITABLE = false; @@ -46,7 +46,7 @@ var RepositoryDatatable = (function(global) { // Enable/disable edit button function updateButtons() { if (currentMode === 'viewMode') { - $(TABLE_WRAPPER).removeClass('editing'); + $(TABLE_WRAPPER_ID).removeClass('editing'); $('#saveCancel').hide(); $('#editDeleteCopy').show(); $('#addRepositoryRecord').prop('disabled', false); @@ -75,7 +75,7 @@ var RepositoryDatatable = (function(global) { $('#unassignRepositoryRecords').prop('disabled', false); } } else if (currentMode === 'editMode') { - $(TABLE_WRAPPER).addClass('editing'); + $(TABLE_WRAPPER_ID).addClass('editing'); $('#editDeleteCopy').hide(); $('#saveCancel').show(); $('#repository-acitons-dropdown').prop('disabled', true); @@ -234,7 +234,7 @@ var RepositoryDatatable = (function(global) { } function initSaveButton() { - $(TABLE_WRAPPER).on('click', '#saveRecord', function() { + $(TABLE_WRAPPER_ID).on('click', '#saveRecord', function() { var $table = $(TABLE_ID); RepositoryDatatableRowEditor.validateAndSubmit($table); }); @@ -253,7 +253,7 @@ var RepositoryDatatable = (function(global) { } function initCancelButton() { - $(TABLE_WRAPPER).on('click', '#cancelSave', function() { + $(TABLE_WRAPPER_ID).on('click', '#cancelSave', function() { resetTableView(); }); } diff --git a/config/locales/en.yml b/config/locales/en.yml index 6f89b51d5..3ed075a7a 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1160,8 +1160,11 @@ en: repository_text_value: "Text" repository_number_value: "Number" repository_date_value: "Date" + repository_date_range_value: "Date" repository_time_value: "Time" + repository_time_range_value: "Time" repository_date_time_value: "Date & Time" + repository_date_time_range_value: "Date & Time" repository_checklist_value: "Checklist" repository_status_value: "Status" repository_list_value: "Dropdown"