diff options
| author | David King <imkingdavid@gmail.com> | 2012-03-30 21:43:00 -0400 |
|---|---|---|
| committer | David King <imkingdavid@gmail.com> | 2012-03-30 21:43:00 -0400 |
| commit | a7045e65724481002e232a7d143b7cc2ed6acb3a (patch) | |
| tree | ad969341161bfd2fef644f325a9cafa17d9e4f41 /phpBB/styles/prosilver/template | |
| parent | 013a8649a5164b90310e76d99fae2186b831a5f0 (diff) | |
| download | forums-a7045e65724481002e232a7d143b7cc2ed6acb3a.tar forums-a7045e65724481002e232a7d143b7cc2ed6acb3a.tar.gz forums-a7045e65724481002e232a7d143b7cc2ed6acb3a.tar.bz2 forums-a7045e65724481002e232a7d143b7cc2ed6acb3a.tar.xz forums-a7045e65724481002e232a7d143b7cc2ed6acb3a.zip | |
[feature/qrpreview] Preview from Quick Reply
PHPBB3-10726
Diffstat (limited to 'phpBB/styles/prosilver/template')
| -rw-r--r-- | phpBB/styles/prosilver/template/ajax.js | 11 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/quickreply_editor.html | 4 |
2 files changed, 13 insertions, 2 deletions
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js index cc886c42b1..54f34e4204 100644 --- a/phpBB/styles/prosilver/template/ajax.js +++ b/phpBB/styles/prosilver/template/ajax.js @@ -66,6 +66,17 @@ $('[data-ajax]').each(function() { }); +/** + * This simply appends #preview to the action of the + * QR action when you click the Full Editor & Preview button + */ +$('#qr_full_editor').click(function() { + $('#qr_postform').attr('action', function(i, val) { + return val + '#preview'; + }); +}); + + /** * This AJAXifies the quick-mod tools. The reason it cannot be a standard diff --git a/phpBB/styles/prosilver/template/quickreply_editor.html b/phpBB/styles/prosilver/template/quickreply_editor.html index 4cd5eedd3e..c7d998eca5 100644 --- a/phpBB/styles/prosilver/template/quickreply_editor.html +++ b/phpBB/styles/prosilver/template/quickreply_editor.html @@ -14,8 +14,8 @@ <fieldset class="submit-buttons"> {S_FORM_TOKEN} {QR_HIDDEN_FIELDS} - <input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1" /> - <input type="submit" accesskey="f" tabindex="7" name="full_editor" value="{L_FULL_EDITOR}" class="button2" data-ajax="false" /> + <input type="submit" accesskey="f" tabindex="6" name="preview" value="{L_FULL_EDITOR}" class="button2" data-ajax="false" id="qr_full_editor" /> + <input type="submit" accesskey="s" tabindex="7" name="post" value="{L_SUBMIT}" class="button1" /> </fieldset> <span class="corners-bottom"><span></span></span></div> </div> |
