jEditable 1.1.1 - Minor Bugfixes

February 15th, 2007

jQuery Latest release of javascript in place editor plugin has some minor bugfixes. In near future postload and getload parameters will be deprecated in favour of loadurl and loadmethod.

Fixed bugs are:

  • Cancel button now works even when onblur is set to ignore. Thanks to Thomas Mann for providing the patch.
  • Plugin does not break the chain even when attached to nonexistent element. In other words it returns this instead of false in case of failure.

As usual test and download plugin.

6 Responses to “jEditable 1.1.1 - Minor Bugfixes”

  1. Raffael Says:

    Hi, Thank you for jEditable… I like it really much. But there is one problem. Somehow the width parameter doesn’t work. Maybe I use it wrong. I tried now 300, “300”, “300px” and other variations. but it doesn’t work at all.

    It would be great if you had an example for this on your website as well.

  2. Brian Says:

    Hello,

    Love your code. Simple and robust. I did find a slight bug, though I’m not sure if it lies with your code or the Interface plugin.

    When using the Interface Plugin (http://interface.eyecon.ro/) to enable sortable lists, I noticed that if I am also using your class to make the list items editable, I can no longer select the text inside the editable textbox. The two plugins don’t seem to be playing nicely together. Perhaps it has something to do with mouse dragging events? Not sure.

  3. Mika Tuupola Says:

    Raffael: Thanks for notifying. Will release a fix hopefully already tomorrow.

    Brian: I have not used jEditable with interface myself. Will look into it anyway. Do you have some example code online?

  4. Mika Tuupola Says:

    Raffael: Can not reproduce the problem. Which browser are you using. Something like following should work.

    $(".editable").editable("<?php print $url ?>echo.php", { 
        indicator : "<img src='img/indicator.gif'>",
        width  : 50,
        height : 50
    });
  5. Ritesh Agrawal Says:

    Hi Mika,

    is there a way to add callback option to your code. I want to update two different div based on the changes in editable div. Let me know if this is possible. Also I notice the recent version of jeditable uses post method rather than load method. Was there any specific reason for this shift. I am using your previous jedtiable code and don’t want to replace it as it is working great for me..only now I need a way to add callback event or some way to get notified of successful editing.

    Regards, Ritesh

  6. Mika Tuupola Says:

    Next release (hopefully tomorrow) will include code for submitting edited content to function instead of URL. With this you can achieve essentially the same. That said. I have been planning about adding a plain callback option too.

    As for this codechange:

    jQuery(self).load(settings.url, p, function(str) {
        self.editing = false;
    }

    versus

    jQuery.post(settings.url, p, function(str) {
        self.innerHTML = str;
        self.editing = false;
    }

    both do exactly the same. They POST array p to settings.url and replace the contents of edited element with reply from that url. I changed it because early versions of jQuery 1.1 had bug in jQuery.load() method. This bug prevented jEditable to work properly.

    So you should be able to upgrade safely. If something goes wrong after all let me know!

Sorry, comments are closed for this article.