diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-06-01 09:05:45 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-06-01 09:05:45 +0000 |
commit | 7f8b191781017f2212ca547b8d0e1fac7990e9a4 (patch) | |
tree | fe2520049124f942677e65141ced3e40e4cd1471 /misc/drupal.js | |
parent | 21e3e4b490dc99fecaca9ddf79c4b186fc3b4f4a (diff) | |
download | brdo-7f8b191781017f2212ca547b8d0e1fac7990e9a4.tar.gz brdo-7f8b191781017f2212ca547b8d0e1fac7990e9a4.tar.bz2 |
#119441: JavaScript aggregator/compressor by m3avrck and others.
Diffstat (limited to 'misc/drupal.js')
-rw-r--r-- | misc/drupal.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/misc/drupal.js b/misc/drupal.js index c4fa5d8ab..8d46fea58 100644 --- a/misc/drupal.js +++ b/misc/drupal.js @@ -50,7 +50,7 @@ Drupal.redirectFormButton = function (uri, button, handler) { // Restore form submission button.form.action = action; button.form.target = target; - + // Get response from iframe body try { response = (iframe.contentWindow || iframe.contentDocument || iframe).document.body.innerHTML; @@ -64,7 +64,7 @@ Drupal.redirectFormButton = function (uri, button, handler) { catch (e) { response = null; } - + response = Drupal.parseJson(response); // Check response code if (response.status == 0) { @@ -74,14 +74,14 @@ Drupal.redirectFormButton = function (uri, button, handler) { handler.oncomplete(response.data); return true; - } + }; return true; - } - } + }; + }; button.onmouseout = button.onblur = function() { button.onclick = null; - } + }; }; /** @@ -218,7 +218,7 @@ Drupal.getSelection = function (element) { return { 'start': start, 'end': end }; } return { 'start': element.selectionStart, 'end': element.selectionEnd }; -} +}; // Global Killswitch on the <html> element if (Drupal.jsEnabled) { |