diff options
author | Callum Macrae <callum@lynxphp.com> | 2011-09-27 19:32:06 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2012-03-31 02:09:17 +0200 |
commit | 7d2422f928758907c66e3dda99e741ad81a14c38 (patch) | |
tree | f333fe6e9e98e9a633fc827379cbdf0a22c70efa /phpBB | |
parent | ba817086f86bc923e38ef6c44bb1a6058de90f04 (diff) | |
download | forums-7d2422f928758907c66e3dda99e741ad81a14c38.tar forums-7d2422f928758907c66e3dda99e741ad81a14c38.tar.gz forums-7d2422f928758907c66e3dda99e741ad81a14c38.tar.bz2 forums-7d2422f928758907c66e3dda99e741ad81a14c38.tar.xz forums-7d2422f928758907c66e3dda99e741ad81a14c38.zip |
[ticket/10271] Removed excess whitespace from core.js.
PHPBB3-10271
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/assets/javascript/core.js | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js index 7184cb2b93..5ad9258d8a 100644 --- a/phpBB/assets/javascript/core.js +++ b/phpBB/assets/javascript/core.js @@ -60,7 +60,7 @@ phpbb.alert = function(title, msg, fadedark) { }); return false; }); - + $(document).bind('keydown', function(e) { if (e.keyCode === 13 || e.keyCode === 27) { dark.trigger('click'); @@ -68,7 +68,7 @@ phpbb.alert = function(title, msg, fadedark) { } return true; }); - + div.find('.alert_close').one('click', function() { dark.trigger('click'); }); @@ -91,7 +91,7 @@ phpbb.alert = function(title, msg, fadedark) { div.show(); dark.fadeIn(100); } - + return div; } @@ -133,7 +133,7 @@ phpbb.confirm = function(msg, callback, fadedark) { callback(false); return false; }); - + $(document).bind('keydown', function(e) { if (e.keyCode === 13) { $('input[type="button"].button1').trigger('click'); @@ -144,11 +144,11 @@ phpbb.confirm = function(msg, callback, fadedark) { } return true; }); - + div.find('.alert_close').one('click', function() { dark.trigger('click'); }); - + if (loading_alert.is(':visible')) { loading_alert.fadeOut(100, function() { @@ -167,7 +167,7 @@ phpbb.confirm = function(msg, callback, fadedark) { div.show(); dark.fadeIn(100); } - + return div; } @@ -179,7 +179,7 @@ phpbb.confirm = function(msg, callback, fadedark) { */ phpbb.parse_querystring = function(string) { var end = {}, i; - + string = string.split('&'); for (i = 0; i < string.length; i++) { @@ -204,15 +204,15 @@ phpbb.ajaxify = function(options, refresh, callback) { { selector = selector.find('input:submit'); } - + selector.click(function() { var act, data, path, that = this; - + if ($(this).data('ajax') == false) { return true; } - + function return_handler(res) { if (typeof res.S_CONFIRM_ACTION === 'undefined') @@ -226,7 +226,7 @@ phpbb.ajaxify = function(options, refresh, callback) { { dark.fadeOut(100); } - + if (typeof phpbb.ajax_callbacks[callback] === 'function') { phpbb.ajax_callbacks[callback](that, res, (is_form) ? act : null); @@ -242,13 +242,13 @@ phpbb.ajaxify = function(options, refresh, callback) { { refresh = false; } - + setTimeout(function() { if (refresh) { window.location = res.REFRESH_DATA.url; } - + dark.fadeOut(100, function() { alert.hide(); }); @@ -268,14 +268,14 @@ phpbb.ajaxify = function(options, refresh, callback) { }, false); } } - + var run_exception = (typeof options.exception === 'function'); if (is_form) { act = /action\[([a-z]+)\]/.exec(this.name); data = decodeURI($(this).closest('form').serialize()); path = $(this).closest('form').attr('action').replace('&', '&'); - + if (act) { act = act[1] @@ -302,7 +302,7 @@ phpbb.ajaxify = function(options, refresh, callback) { phpbb.loading_alert(); $.get(this.href, return_handler); } - + return false; }); return this; @@ -326,4 +326,4 @@ phpbb.add_ajax_callback('alt_text', function(el) { }); -})(jQuery); // Avoid conflicts with other libraries
\ No newline at end of file +})(jQuery); // Avoid conflicts with other libraries |