Skip to content

Commit

Permalink
Javascript and layout fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Guinn committed Dec 23, 2014
1 parent 9b21874 commit 2919e7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion code/GridFieldApplyToMultipleRows.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function getHTMLFragments($gridField) {
}

return array(
$this->targetFragment => '<p class="grid-multiselect-button">' . $button->Field() . '</p>',
$this->targetFragment => $button->Field(),
);
}

Expand Down
14 changes: 6 additions & 8 deletions javascript/GridFieldCheckboxSelectComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@
return false;
}

if (this.data('confirm')) {
if (confirm(this.data('confirm'))) {
return true;
} else {
e.preventDefault();
e.stopPropagation();
return false;
}
if (this.data('confirm') && !confirm(this.data('confirm'))) {
e.preventDefault();
e.stopPropagation();
return false;
}

this._super(e);
}
});

Expand Down

0 comments on commit 2919e7a

Please sign in to comment.