mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-18 11:10:56 +01:00
Expose Page Media instance to Grav Admin JS API
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
1. [](#bugfix)
|
1. [](#bugfix)
|
||||||
* Fix for bad referenced to `shouldLoadAdditionalFilesInBackground()` [#1145](https://github.com/getgrav/grav-plugin-admin/pull/1145)
|
* Fix for bad referenced to `shouldLoadAdditionalFilesInBackground()` [#1145](https://github.com/getgrav/grav-plugin-admin/pull/1145)
|
||||||
|
* Expose Page Media instance to Grav Admin JS API
|
||||||
|
|
||||||
# v1.5.0-rc.3
|
# v1.5.0-rc.3
|
||||||
## 06/22/2017
|
## 06/22/2017
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import Sortable from 'sortablejs';
|
import Sortable from 'sortablejs';
|
||||||
import PageFilters, { Instance as PageFiltersInstance } from './filter';
|
import PageFilters, { Instance as PageFiltersInstance } from './filter';
|
||||||
import './page';
|
import Page from './page';
|
||||||
|
|
||||||
const pad = (n, s) => (`000${n}`).substr(-s);
|
const pad = (n, s) => (`000${n}`).substr(-s);
|
||||||
|
|
||||||
@@ -43,6 +43,7 @@ if (orderingElement.length) {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
Ordering,
|
Ordering,
|
||||||
|
Page,
|
||||||
PageFilters: {
|
PageFilters: {
|
||||||
PageFilters,
|
PageFilters,
|
||||||
Instance: PageFiltersInstance
|
Instance: PageFiltersInstance
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import './add';
|
|||||||
import './move';
|
import './move';
|
||||||
import './delete';
|
import './delete';
|
||||||
import './disable-buttons';
|
import './disable-buttons';
|
||||||
import './media';
|
import PageMedia, { Instance as PageMediaInstances } from './media';
|
||||||
import './multilang';
|
import './multilang';
|
||||||
|
|
||||||
const switcher = $('input[type="radio"][name="mode-switch"]');
|
const switcher = $('input[type="radio"][name="mode-switch"]');
|
||||||
@@ -37,3 +37,10 @@ if (switcher) {
|
|||||||
setTimeout(() => fakeLink.attr('href', link).get(0).click(), 5);
|
setTimeout(() => fakeLink.attr('href', link).get(0).click(), 5);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
Media: {
|
||||||
|
PageMedia,
|
||||||
|
PageMediaInstances
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|||||||
4
themes/grav/js/admin.min.js
vendored
4
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