mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 06:16:56 +02:00
Now passing media order when calling for the list of media
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fixed Undefined property: stdClass::$image in 1.8.2 [#1454](https://github.com/getgrav/grav-plugin-admin/issues/1454)
|
||||
* Now passing media order when calling for the list of media
|
||||
|
||||
# v1.8.2
|
||||
## 05/24/2018
|
||||
|
||||
@@ -74,7 +74,8 @@ export default class PageMedia extends FilesField {
|
||||
}
|
||||
|
||||
fetchMedia() {
|
||||
const body = { uri: this.getURI() };
|
||||
const order = this.container.closest('.form-field').find('[name="data[header][media_order]"]').val();
|
||||
const body = { uri: this.getURI(), order };
|
||||
let url = this.urls.fetch;
|
||||
|
||||
request(url, { method: 'post', body }, (response) => {
|
||||
|
||||
2
themes/grav/js/admin.min.js
vendored
2
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user