diff options
author | Callum Macrae <callum@lynxphp.com> | 2011-10-22 16:16:15 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2012-03-31 02:09:19 +0200 |
commit | 1c5b1ede1c35d57e9abfb62bdee145828011b1b0 (patch) | |
tree | b91c2c5c57a4ecc0057cdd67f9d909a08bbf10f4 /phpBB/assets | |
parent | 7f338971542424a85242287758f752f4f873e7f3 (diff) | |
download | forums-1c5b1ede1c35d57e9abfb62bdee145828011b1b0.tar forums-1c5b1ede1c35d57e9abfb62bdee145828011b1b0.tar.gz forums-1c5b1ede1c35d57e9abfb62bdee145828011b1b0.tar.bz2 forums-1c5b1ede1c35d57e9abfb62bdee145828011b1b0.tar.xz forums-1c5b1ede1c35d57e9abfb62bdee145828011b1b0.zip |
[ticket/10271] Added comments to AJAX callbacks.
PHPBB3-10271
Diffstat (limited to 'phpBB/assets')
-rw-r--r-- | phpBB/assets/javascript/core.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js index b060f6abf0..09d7d1fa83 100644 --- a/phpBB/assets/javascript/core.js +++ b/phpBB/assets/javascript/core.js @@ -353,6 +353,11 @@ phpbb.add_ajax_callback = function(id, callback) } +/** + * This callback alternates text - it replaces the current text with the text in + * the alt-text data attribute, and replaces the text in the attribute with the + * current text so that the process can be repeated. + */ phpbb.add_ajax_callback('alt_text', function(el) { var alt_text = $(el).data('alt-text'); $(el).data('alt-text', $(el).text()); |