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

Problem creating a task in sprint menu tab using Dwarf Plugin #34

Open
julio-helden opened this issue Aug 22, 2012 · 6 comments
Open

Problem creating a task in sprint menu tab using Dwarf Plugin #34

julio-helden opened this issue Aug 22, 2012 · 6 comments

Comments

@julio-helden
Copy link

Hi guys, my problem is when I click the button to create a new task in the backlog, Dwarf puts a green box inside my backlog but there is no information. Only appears a clean green box (without subject, estimate and owner fields). I inspected my log and no error was throwed (see log1 below), but no field is inside the green box. I noted that when I click in the button to create a new task, I receive the following JS error "Uncaught TypeError: Cannot call method 'attr' of null".

Does someone has an idea about what is happening ?

Cheers.

log1:

Started POST "/adtaskinl/create" for 127.0.0.1 at 2012-08-22 15:19:21 +1200
Processing by AdtaskinlController#create as /
Parameters: {"subject"=>"[Subject]", "fixed_version_id"=>"", "project_id"=>"1", "authenticity_token"=>"KbFLvRCXzT581dHSMJCJ/L6FHdIIvG0heTzxgl45Ltc="}
Rendered mailer/_issue.text.erb (0.0ms)
Rendered mailer/issue_add.text.erb within layouts/mailer (1.0ms)
Rendered mailer/_issue.html.erb (0.0ms)
Rendered mailer/issue_add.html.erb within layouts/mailer (0.0ms)
Rendered text template (0.0ms)
Completed 200 OK in 116ms (Views: 1.0ms | ActiveRecord: 41.0ms)

@teelicht
Copy link

I have the very same problem (green box, not possible to add any information).
Browser: Safari6
JS Exception in /plugin_assets/AgileDwarf/javascripts/libs/jquery.jeditable.ptext.js
TypeError: 'null' is not an object (evaluating 'input.attr')

Unfortunately, this makes the plugin quite unusable for me.

@cleankod
Copy link

Same problem here. I tried on IE 9, Google Chrome, Firefox...
I have Redmine 2.0.3

@Saruqui
Copy link

Saruqui commented Oct 9, 2012

I fixed this problem by adding the changing code in /opt/bitnami/apps/redmine/htdocs/public/plugin_assets/AgileDwarf/javascripts/libs/jquery.jeditable.ptext.js

(function($) {
$.editable.addInputType('ptext', {
element : function(settings, original)
{

    var input = $('<input type="text"/>');

    if (settings.width  != 'none') { input.attr('width', settings.width);  }
    if (settings.height != 'none') { input.attr('height', settings.height); }
    input.attr('autocomplete','off');
    input.attr('placeholder', settings.placeholder);
    $(this).append(input);
    input.textPlaceholder();
    return input;
}

});
})(jQuery);

@sudosteph
Copy link

Nice catch Saruqui! I think you just found the secret to fixing the date setting problem (Issues #18, #30) too. I added the "(function($) { " before "$.editable.addInputType( 'datepicker', { " , and added "})(jQuery);" at the end of "jquery.jeditable.datepicker.js" and I can now pick dates! Well, I actually can't pick an end date more than 2 days away, but otherwise it appears to work.

@lauer
Copy link

lauer commented Oct 10, 2012

I am using this fork. https://github.com/cwerner1/AgileDwarf/tree/merginBranch
It does also solve the problem. Maybe @iRessources should pull these changes.

@bcmedeiros
Copy link

I don't know what's this damn code does, but it works!! I'll do a pull request.

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

7 participants