Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anders Rähr 22 posts 46 karma points
    Nov 16, 2010 @ 19:23
    Anders Rähr
    1

    Might be a little bit easier with 1 one line of jquery...

    $("p:empty").remove();

  • Chad Rosenthal 272 posts 474 karma points
    Nov 16, 2010 @ 19:24
    Chad Rosenthal
    0

    Can't argue with that. This is just a different option.

  • Christian Foged 37 posts 58 karma points
    Nov 18, 2010 @ 15:45
    Christian Foged
    0

    Can you put..

    $("p:empty").remove();

    ...somewhere directly in the templates? Or?

    Not a programmer, just a frontender...

    /Christian

  • Chad Rosenthal 272 posts 474 karma points
    Nov 18, 2010 @ 15:51
    Chad Rosenthal
    0

    *laugh* I'm a programmer and not a frontender.

    This is just an alternative solution, and both of these options are just fixes until they can actually fix the bug that is causing this in the first place.

    In my situation, we don't use JQuery, so this solution doesn't necessarily meet my needs. On top of that, our Front-End developers aren't happy with the idea of using javascript to remove functionality for a page. They believe that Javascript should only be used to enhance the functionality. 

    So hence, I looked online and found this alternative solution and went with it.

  • Kim Andersen 1447 posts 2197 karma points MVP
    Dec 09, 2010 @ 15:10
    Kim Andersen
    0

    "They believe that Javascript should only be used to enhance the functionality". I like that a lot. And I agree with that :)

    I haven't tried using your package Chad, but I think it's a nice alternative to the jQuery fix. Also because there's stille some people that have javascript disabled (I know, they are bastards, but those users are unfortunately still out there), and they wouldn't see the fix.

    /Kim A

  • Chad Rosenthal 272 posts 474 karma points
    Dec 09, 2010 @ 15:11
    Chad Rosenthal
    0

    Feel free to give me a Hi-Five for creating alternatives. :-)

  • Rik Helsen 670 posts 873 karma points
    Jan 19, 2011 @ 16:01
    Rik Helsen
    0

    I prefer a solution that isn't client-side :)

    Thanks a lot for this package!

Please Sign in or register to post replies

Write your reply to:

Draft