Menu

#2 Form buttons not showing state

open
nobody
None
5
2008-06-10
2008-06-10
Anonymous
No

We are having a problem with the version of JMForms released for Tiny v3. When users select various parts of their forms, the related form editing buttons do not highlight as they should. Therefor, it is not possible to edit the elements.

Discussion

  • Ted Rust

    Ted Rust - 2008-06-10

    Logged In: YES
    user_id=1964014
    Originator: NO

    Sorry, forgot to specify that this appears to be a Firefox (and Safari?) bug and only for some input elements. Specifically selects.

     
  • Ted Rust

    Ted Rust - 2008-06-12

    Logged In: YES
    user_id=1964014
    Originator: NO

    The select jmform_select.js file has at least one bug in it. Was preventing IE (the only browser that can successfully edit an existing select) from editing selects. Patch code provided in attachment.

    Btw, it was a simple typo: tinyMCE.getAttrib instead of dom.getAttrib.

     
  • Ted Rust

    Ted Rust - 2008-06-12

    Logged In: YES
    user_id=1964014
    Originator: NO

    Hmm, won't let me attach a file. Here is the diff output.

    --- jmform_select.js 2008-06-12 04:04:25.000000000 -0700
    +++ jmform_select_trunk.js 2008-06-12 04:12:08.000000000 -0700
    @@ -203,7 +203,7 @@
    var st = '', bordercolor = '', bgcolor = '', backgroundimage = '', id = '', className = '';

    if (selElm != undefined) {
    - st = dom.parseStyle(dom.getAttrib(selElm, "style"));
    + st = dom.parseStyle(tinyMCE.getAttrib(selElm, "style"));

    // Get select element data
    jmformName = dom.getAttrib(selElm, 'name');

     

Log in to post a comment.

MongoDB Logo MongoDB