Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Re-enable Entwine Inspector in CMS & document

  • Loading branch information...
commit b560d258d36c00939d0de54bb65a2ffdb88efbbb 1 parent 915ae1a
Hamish Friedlander hafriedlander authored
6 admin/code/LeftAndMain.php
View
@@ -296,9 +296,9 @@ function init() {
);
// TODO Confuses jQuery.ondemand through document.write()
- // if (Director::isDev()) {
- // Requirements::javascript(THIRDPARTY_DIR . '/jquery-entwine/src/jquery.entwine.inspector.js');
- // }
+ if (Director::isDev()) {
+ Requirements::javascript(THIRDPARTY_DIR . '/jquery-entwine/src/jquery.entwine.inspector.js');
+ }
Requirements::css(FRAMEWORK_ADMIN_DIR . '/thirdparty/jquery-notice/jquery.notice.css');
Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery-ui.css');
4 docs/en/reference/cms-architecture.md
View
@@ -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
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
The JavaScript logic powering the CMS is divided into many files,
3  docs/en/topics/javascript.md
View
@@ -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
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
### Keep things simple
Please sign in to comment.
Something went wrong with that request. Please try again.