Skip to content

Commit

Permalink
Fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
execut committed Mar 1, 2018
1 parent aa460f4 commit 36dfb6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions widgets/GridView.php
Expand Up @@ -63,7 +63,7 @@ protected function registerWidget($name = null, $id = null)

$this->_registerBundle();

if (!$this->isAjaxCrud) {
if (!$this->isAjaxCrud && $this->getUpdateUrl()) {
if ($id === null) {
$id = $this->options['id'];
}
Expand Down Expand Up @@ -128,7 +128,7 @@ public function getToolbarConfig(): array
}
}

return ArrayHelper::merge($this->toolbar, [
return ArrayHelper::merge([
// 'massEdit' => ['content' => $this->renderMassEditButton()],
// 'massVisible' => ['content' => $this->renderVisibleButtons()],
'add' => ['content' => $this->renderAddButton()],
Expand All @@ -139,7 +139,7 @@ public function getToolbarConfig(): array
// 'dynaParams' => ['content' => '{dynagridFilter}{dynagridSort}{dynagrid}'],
// 'toggleData' => '{toggleData}',
// 'export' => '{export}',
]);
], $this->toolbar);
}

public function beginPjax() {
Expand Down
2 changes: 1 addition & 1 deletion widgets/assets/EditDialog.js
Expand Up @@ -53,7 +53,7 @@
attributes;
if (typeof t.options.attributesElement === 'undefined') {
targetEl = $(e.target);
if (targetEl.parents('a').length || targetEl.is('a')) {
if (targetEl.parents('a').length || targetEl.is('a') || targetEl.is(':button')) {
return true;
}

Expand Down

0 comments on commit 36dfb6a

Please sign in to comment.