mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Re-enable Entwine Inspector in CMS & document
This commit is contained in:
parent
915ae1a966
commit
b560d258d3
@ -296,9 +296,9 @@ class LeftAndMain extends Controller implements PermissionProvider {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// TODO Confuses jQuery.ondemand through document.write()
|
// TODO Confuses jQuery.ondemand through document.write()
|
||||||
// if (Director::isDev()) {
|
if (Director::isDev()) {
|
||||||
// Requirements::javascript(THIRDPARTY_DIR . '/jquery-entwine/src/jquery.entwine.inspector.js');
|
Requirements::javascript(THIRDPARTY_DIR . '/jquery-entwine/src/jquery.entwine.inspector.js');
|
||||||
// }
|
}
|
||||||
|
|
||||||
Requirements::css(FRAMEWORK_ADMIN_DIR . '/thirdparty/jquery-notice/jquery.notice.css');
|
Requirements::css(FRAMEWORK_ADMIN_DIR . '/thirdparty/jquery-notice/jquery.notice.css');
|
||||||
Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery-ui.css');
|
Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery-ui.css');
|
||||||
|
@ -127,6 +127,10 @@ in jQuery.entwine, we're trying to reuse library code wherever possible.
|
|||||||
The most prominent example of this is the usage of [jQuery UI](http://jqueryui.com) for
|
The most prominent example of this is the usage of [jQuery UI](http://jqueryui.com) for
|
||||||
dialogs and buttons.
|
dialogs and buttons.
|
||||||
|
|
||||||
|
The CMS includes the jQuery.entwine inspector. Press Ctrl+` to bring down the inspector.
|
||||||
|
You can then click on any element in the CMS to see which entwine methods are bound to
|
||||||
|
any particular element.
|
||||||
|
|
||||||
## JavaScript and CSS dependencies via Requirements and Ajax
|
## JavaScript and CSS dependencies via Requirements and Ajax
|
||||||
|
|
||||||
The JavaScript logic powering the CMS is divided into many files,
|
The JavaScript logic powering the CMS is divided into many files,
|
||||||
|
@ -222,6 +222,9 @@ This is a deliberately simple example, the strength of jQuery.entwine over simpl
|
|||||||
properties, namespacing, as well as its inheritance based on CSS selectors. Please see the [project
|
properties, namespacing, as well as its inheritance based on CSS selectors. Please see the [project
|
||||||
documentation](http://github.com/hafriedlander/jquery.entwine/tree/master) for more complete examples.
|
documentation](http://github.com/hafriedlander/jquery.entwine/tree/master) for more complete examples.
|
||||||
|
|
||||||
|
When working in the CMS, the CMS includes the jQuery.entwine inspector. Press Ctrl+` to bring down the inspector.
|
||||||
|
You can then click on any element in the CMS to see which entwine methods are bound to any particular element.
|
||||||
|
|
||||||
## Architecture and Best Practices
|
## Architecture and Best Practices
|
||||||
|
|
||||||
### Keep things simple
|
### Keep things simple
|
||||||
|
Loading…
Reference in New Issue
Block a user