Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1778

Auto-focus correct form control on error

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.2-B3
    • Component/s: Admin Interfaces
    • Labels:
      None

      Description

      In the "add_form_error" function (file: "core/admin_templates/js/forms.js") replace

      first_error[prefix] = [field, element];

      with

      first_error[prefix] = [field, $input_fields.length > 0 ? $input_fields.first().attr('id') : element];

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Erik Snarski [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 7m
                  7m