Auto-save with editable radiobutton in template seems not to be working with

(4 posts) (2 voices)
  1. duane, Member

    I've got editable fields in a template and the radiobutton autosubmit:1 value seems to not work.

    I am using the following format:
    SELECT 'dbr.editable', 'MyColumn', 'MyUpdateQuery', 'inMyID=my_id', 'type=radiobutton', "select=SELECT 'yes' UNION SELECT 'no'", "options={'autosubmit':1, 'display':'inline'}"

    But it doesn't seem to trigger the update script when selecting an option/existing the field when I have the 'autosubmit':1 in the options - but does work with pressing the OK button once I remove 'autosubmit':1

    I've updated to the latest version of mydbr (as of today).

    Is this a bug or have I missed something?

  2. myDBR Team, Key Master

    If you are using the editable in a DIV, you can catch the clicks on radiobuttons with following code:

    select 'dbr.javascript',
    $(document).on('click','div.autosubmit .jeditableform input:radio', function() {

    myDBR Team

  3. duane, Member

    OK - I'll start by stripping my template down to the essentials so no extra/missing tags not extra js occurs which might cause the issue.

  4. myDBR Team, Key Master

    check the revised answer.

    myDBR Team


You must log in to post.