Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't choose sprint end date #30

Open
yquenechdu opened this issue Aug 16, 2012 · 8 comments
Open

I can't choose sprint end date #30

yquenechdu opened this issue Aug 16, 2012 · 8 comments

Comments

@yquenechdu
Copy link

I,

I use AgileDwarf 0173261, last version on guthub.
Rails 3.2.6, fresh Redmine 2.0.3 and Ruby 1.9.3

Given I'm administrator on my projet and I'm on the sprint page
When I tried to choose the end date on the calendar
Then I see "click to edit'" on the sprint x (no date)

Yannick

@yquenechdu
Copy link
Author

Hi,

Do you have a rspec or cucumber for your code ? I haven't found the tests to your git

Thx
Yannick

@markablov
Copy link
Contributor

Do you have a rspec or cucumber for your code ? I haven't found the tests to your git

Unfortunally no, most part of code (66%) written on JS.
But i am going to cover RoR part by tests.

About bug - can you provide logs?

@askaaron
Copy link

Here the same, but with Redmine 1.4.3.stable as packed by https://launchpad.net/~ondrej/+archive/redmine on Ubuntu 12.04 LTS and Agile Dwarf 0.0.3.

Weird behaviour:

When i add a sprint, it shows up and has a default title, which can be edited by clicking on it - works fine so far.

BUT:

Next to the title there is a lonely "Click here to edit" which does nothing - you can click it, the text disappears and that's it. Also start and end date are missing completely!

To get start/end date, i have to go to a different tab and return to the tasks tab - then the sprint cards also provide areas for start and end date - but still not editable. You can click the text, but this will only cause the text to disappear - no edit boxes at all and no chance to set start/end date for a sprint.

Editing the title or the description works fine - but not the dates.

@spaluc
Copy link

spaluc commented Aug 22, 2012

I have the same with latest rev.

start/end dates, estimated h, titles, everything that shouldbe etitable disapairs, IE reports:

Value: 'null' is empty or not an object
Line: 5
char: 42
Code: 0
URI: http://xxxx/redmine/plugin_assets/AgileDwarf/javascripts/libs/jquery.jeditable.ptext.js

@bcmedeiros
Copy link

spaluc, the error you report seems bug #41.

@codingjoe
Copy link

The problem is, that jQuery isn't working in jeditable.ptest.js It's the last script to be loaded.
I don't know where, but at some point before jQuery get overwritten.

@igloo15
Copy link

igloo15 commented Dec 5, 2012

I just fixed this issue because it was annoying me. The issue was caused by the fact that days and months are switched. So when you picked any date past the 12th it would default to Click to Edit. Changing the dateformat in datepicker.js so that the date is first and month second solves this problem.

look in file jquery.jeditable.datepicker.js

datepicker = {
dateFormat: 'dd/mm/yy', //ADD THIS TO YOUR CODE
onSelect: function() {
// clicking specific day in the calendar should
// submit the form and close the input field
form.submit();
},

    onClose: function() {
      setTimeout( function() {
        if ( !input.is( ':focus' ) ) {
          // input has NO focus after 150ms which means
          // calendar was closed due to click outside of it
          // so let's close the input field without saving
          original.reset( form );
        } else {
          // input still HAS focus after 150ms which means
          // calendar was closed due to Enter in the input field
          // so lets submit the form and close the input field
          form.submit();
        }

        // the delay is necessary; calendar must be already
        // closed for the above :focus checking to work properly;
        // without a delay the form is submitted in all scenarios, which is wrong
      }, 150 );
    }
  };

@AlexAndrascu
Copy link

subscribe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants