Adds confirm dialogue to Q2A when user has entered text.
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.rst
qa-confirm-admin.php
qa-confirm-layer.php
qa-plugin.php

README.rst

Question2Answer Confirm 1.0b1

Description

This is a plugin for Question2Answer that provides confirm dialogues when leaving text in a textarea.

Features

  • checks all textareas on key up to see if there is still text in one of them, adds the function to onbeforeunload
  • checks at document.onload, for error submissions
  • shows confirm when leaving unless it is a form submission

Installation

  1. Install Question2Answer
  2. Get the source code for this plugin from github, either using git, or downloading directly:
    • To download using git, install git and then type git clone git://github.com/NoahY/q2a-confirm.git embed at the command prompt (on Linux, Windows is a bit different)
    • To download directly, go to the project page and click Download
  3. navigate to your site, go to Admin -> Plugins on your q2a install and select the 'Enable confirmation dialogue' option, then 'Save'.

Disclaimer

This is beta code. It is probably okay for production environments, but may not work exactly as expected. Refunds will not be given. If it breaks, you get to keep both parts.

Release

All code herein is Copylefted.

About q2A

Question2Answer is a free and open source platform for Q&A sites. For more information, visit:

http://www.question2answer.org/