Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 31ae53a6d8ae9c5e59a926d97f8742aa5a31423a 1 parent 27f16fe
@cluke009 cluke009 authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 ajax.module
View
7 ajax.module
@@ -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 .= '?';
Please sign in to comment.
Something went wrong with that request. Please try again.