Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cluke009 committed Feb 21, 2012
1 parent 27f16fe commit 31ae53a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ajax.module
Expand Up @@ -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'])) {
Expand Down Expand Up @@ -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 .= '?';
Expand Down

0 comments on commit 31ae53a

Please sign in to comment.