Re-enable Entwine Inspector in CMS & document

This commit is contained in:
Hamish Friedlander 2012-08-16 11:55:44 +12:00
parent 915ae1a966
commit b560d258d3
3 changed files with 10 additions and 3 deletions

View File

@ -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');

View File

@ -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,

View File

@ -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