Giter Site home page Giter Site logo

Comments (6)

teelicht avatar teelicht commented on September 2, 2024

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.

from agiledwarf.

cleankod avatar cleankod commented on September 2, 2024

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

from agiledwarf.

Saruqui avatar Saruqui commented on September 2, 2024

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);

from agiledwarf.

sudosteph avatar sudosteph commented on September 2, 2024

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.

from agiledwarf.

lauer avatar lauer commented on September 2, 2024

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

from agiledwarf.

bcmedeiros avatar bcmedeiros commented on September 2, 2024

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

from agiledwarf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.