Permalink
Browse files

Fix http://drupal.org/node/1355982#comment-5323650 for non js sessions

  • Loading branch information...
1 parent 27f16fe commit 31ae53a6d8ae9c5e59a926d97f8742aa5a31423a @cluke009 cluke009 committed Feb 21, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 ajax.module
View
@@ -157,6 +157,9 @@ function ajax_validator_set(&$form) {
* @return Bool
*/
function ajax_submitter_set(&$form, $found) {
+ if (!isset($_POST['drupal_ajax'])) {
+ return;
+ }
if (!$found['submitter']) {
$form['#submit'][] = 'ajax_submitter';
if (empty($form['#attributes']['class'])) {
@@ -286,11 +289,11 @@ function ajax_build_url($u) {
$out .= '@';
}
$out .= $u['host'];
-
+
if (!empty($u['port'])) {
$out .= ':' . $u['port'];
}
-
+
$out .= $u['path'];
if (!empty($u['query'])) {
$out .= '?';

0 comments on commit 31ae53a

Please sign in to comment.