Skip to content

Commit

Permalink
Admin form elements with ajax-requests: use not absolute but relative…
Browse files Browse the repository at this point in the history
… url, without scheme & domain
  • Loading branch information
sngrl committed Oct 14, 2021
1 parent f7bac89 commit b80695b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion resources/views/default/form/element/file.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'adminModel' => AdminSection::getModel($model)->getAlias(),
'field' => $path,
'id' => $model->getKey()
]) }}"
], false) }}"
value="{{ $value }}"
:readonly="{{ $readonly ? 'true' : 'false' }}"
name="{{ $name }}"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/default/form/element/files.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'adminModel' => AdminSection::getModel($model)->getAlias(),
'field' => $path,
'id' => $model->getKey()
]) }}"
], false) }}"
data-token="{{ csrf_token() }}">

@if (!$readonly)
Expand Down
2 changes: 1 addition & 1 deletion resources/views/default/form/element/image.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'adminModel' => AdminSection::getModel($model)->getAlias(),
'field' => $path,
'id' => $model->getKey()
]) }}"
], false) }}"
value="{{ $value }}"
asset_prefix="{{ $asset_prefix }}"
:readonly="{{ $readonly ? 'true' : 'false' }}"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/default/form/element/images.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'adminModel' => AdminSection::getModel($model)->getAlias(),
'field' => $path,
'id' => $model->getKey()
]) }}"
], false) }}"
:values="{{ json_encode($value) }}"
:readonly="{{ $readonly ? 'true' : 'false' }}"
:onlylink="{{ $paste_only_link ? 'true' : 'false' }}"
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Element/DependentSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function getDataUrl()
'adminModel' => AdminSection::getModel($this->model)->getAlias(),
'field' => $this->getName(),
'id' => $this->model->getKey(),
]);
], false);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Element/MultiSelectAjax.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function getSearchUrl()
'adminModel' => AdminSection::getModel($this->model)->getAlias(),
'field' => $this->getPath() ?: $this->getFieldName(),
'id' => $this->model->getKey(),
]);
], false);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Element/SelectAjax.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function getSearchUrl()
'adminModel' => AdminSection::getModel($this->model)->getAlias(),
'field' => $this->getPath() ?: $this->getName(),
'id' => $this->model->getKey(),
]);
], false);
}

/**
Expand Down

0 comments on commit b80695b

Please sign in to comment.