Problem/Motivation

(Why the issue was filed, steps to reproduce the problem, etc.)

Proposed resolution

Modify the class views_handler_field to add optional confirm() behavior from javascript.

Remaining tasks

  1. Add a checkbox to enable a "confirm" dialog for onclick to views_handler_field::options_form().
  2. Add a text field to permit customization of the confirm message to views_handler_field::options_form().
  3. Handle confirm message addition to link with tokens in views_handler_field::render_as_link().
  4. Testing.
  5. Develop d8 patch and post as backport.

User interface changes

  • Adds a checkbox to enable a "confirm" dialog for onclick to "Rewrite output of this field"->"Output this field as a link" section.
  • Adds a text field to permit customization of the confirm message to "Rewrite output of this field"->"Output this field as a link" section.

API changes

none

Data model changes

none

Comments

robertwb created an issue. See original summary.

robertwb’s picture

Status: Active » Needs review
FileSize
2.24 KB

Status: Needs review » Needs work

The last submitted patch, 2: add-confirm-onclick_2877978-02.patch, failed testing.