mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-12 16:26:07 +01:00
Merge branch 'feature/whitebox' of github.com:getgrav/grav-plugin-admin into feature/whitebox
This commit is contained in:
@@ -5,7 +5,7 @@ export default ({ preview = false, color_scheme = {}, fonts = {}, callback = ()
|
||||
const URI = `${config.current_url}.json/task:compileScss`;
|
||||
request(URI, {
|
||||
method: 'post',
|
||||
body: Object.assign({}, preview ? { preview } : null, color_scheme, fonts)
|
||||
body: Object.assign({}, preview ? { preview } : null, color_scheme)
|
||||
}, callback);
|
||||
};
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ const compiler = (element, preview = false, callback = () => {}) => {
|
||||
Compile({
|
||||
preview,
|
||||
color_scheme: fields.filter((value, key) => key.match(/^data\[whitebox]\[color_scheme]/)).toJS(),
|
||||
fonts: fields.filter((value, key) => key.match(/^data\[fonts\]/)).toJS(),
|
||||
callback: (response) => {
|
||||
callback.call(callback, response);
|
||||
resetElement(element);
|
||||
|
||||
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