Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

same bug on inplace_textbox and inplace_textarea

#88

You can't start your text with char <
Try this string <a> on demo page.

I think is better label must always html_validate the text

Reported by Panagiotis Skarvelis · July 8th, 2010 @ 10:45 AM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Jan-Felix Wittmann
  2. Panagiotis Skarvelis
  3. Panagiotis Skarvelis
    Panagiotis Skarvelis

    Another annoying think on this Elements is that if the text is empty then there is no way to find it with your mouse.

    I believe is better if the text value is empty then the span label must shows the word "empty" or "click here" OR for properly internationalization an icon.

    Also for the same reason the "click to edit" can change to pencil icon.

    Best regards,
    Panagiotis

    July 8th, 2010 @ 12:19 PM

  4. Panagiotis Skarvelis
    Panagiotis Skarvelis

    Adding a patch for those that want non-English messages on inplace,inplace_textarea,flash,file elements on my fork
    http://github.com/sl45sms/nitrogen/commit/9413bdb1b418e7cec433e8e60...

    Both inline_textbox and inline_textarrea have now the optional keys:
    instructions_text
    ok_button_text
    cancel_button_text

    The file element the optional key:
    error_text

    and the flash element the optional key:
    flash_close_text

    July 13th, 2010 @ 12:12 PM

  5. Panagiotis Skarvelis
    Panagiotis Skarvelis

    For localization of datepicker_textbox element you can do something as the follow example for Greek:

    #literal{text=wf:f("~s",["<script type="text/javascript" src="/nitrogen/jquery.ui.datepicker-el.js"></script>"]),html_encode=false },
    
    #datepicker_textbox{options=[{dateFormat,"dd-mm-yy"},{regional,"el"}]}.
    
    first have to download the localization file from http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/

    July 13th, 2010 @ 12:20 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.