Fix project spec

pull/4323/head
Oliver Günther 8 years ago
parent 15d81c1a0c
commit 9f3c36eb1a
  1. 5
      app/assets/javascripts/application.js.erb
  2. 1
      spec/features/time_entry/time_entry_report_spec.rb

@ -197,14 +197,15 @@ function generateProjectIdentifier() {
function observeProjectName() {
jQuery('#project_name').keyup(function() {
if(!projectIdentifierLocked) {
jQuery('project_identifier').setValue(generateProjectIdentifier());
jQuery('#project_identifier').val(generateProjectIdentifier());
}
});
}
function observeProjectIdentifier() {
jQuery('#project_identifier').keyup(function() {
if($('project_identifier').getValue() !== '' && $('project_identifier').getValue() != generateProjectIdentifier()) {
if(jQuery('#project_identifier').getValue() !== '' &&
jQuery('#project_identifier').getValue() != generateProjectIdentifier()) {
projectIdentifierLocked = true;
} else {
projectIdentifierLocked = false;

@ -66,7 +66,6 @@ describe 'time entry report', type: :feature, js: true do
end
end
context 'for all projects' do
before do
visit time_entries_path

Loading…
Cancel
Save