Skip to content
This repository
Browse code

Re-enable Entwine Inspector in CMS & document

  • Loading branch information...
commit b560d258d36c00939d0de54bb65a2ffdb88efbbb 1 parent 915ae1a
Hamish Friedlander authored August 16, 2012
6  admin/code/LeftAndMain.php
@@ -296,9 +296,9 @@ function init() {
296 296
 		);
297 297
 
298 298
 		// TODO Confuses jQuery.ondemand through document.write()
299  
-		// if (Director::isDev()) {
300  
-			// Requirements::javascript(THIRDPARTY_DIR . '/jquery-entwine/src/jquery.entwine.inspector.js');
301  
-		// }
  299
+		if (Director::isDev()) {
  300
+			Requirements::javascript(THIRDPARTY_DIR . '/jquery-entwine/src/jquery.entwine.inspector.js');
  301
+		}
302 302
 
303 303
 		Requirements::css(FRAMEWORK_ADMIN_DIR . '/thirdparty/jquery-notice/jquery.notice.css');
304 304
 		Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery-ui.css');
4  docs/en/reference/cms-architecture.md
Source Rendered
@@ -127,6 +127,10 @@ in jQuery.entwine, we're trying to reuse library code wherever possible.
127 127
 The most prominent example of this is the usage of [jQuery UI](http://jqueryui.com) for
128 128
 dialogs and buttons.
129 129
 
  130
+The CMS includes the jQuery.entwine inspector. Press Ctrl+` to bring down the inspector.
  131
+You can then click on any element in the CMS to see which entwine methods are bound to
  132
+any particular element.
  133
+
130 134
 ## JavaScript and CSS dependencies via Requirements and Ajax
131 135
 
132 136
 The JavaScript logic powering the CMS is divided into many files,
3  docs/en/topics/javascript.md
Source Rendered
@@ -222,6 +222,9 @@ This is a deliberately simple example, the strength of jQuery.entwine over simpl
222 222
 properties, namespacing, as well as its inheritance based on CSS selectors. Please see the [project
223 223
 documentation](http://github.com/hafriedlander/jquery.entwine/tree/master) for more complete examples.
224 224
 
  225
+When working in the CMS, the CMS includes the jQuery.entwine inspector. Press Ctrl+` to bring down the inspector.
  226
+You can then click on any element in the CMS to see which entwine methods are bound to any particular element.
  227
+
225 228
 ## Architecture and Best Practices
226 229
 
227 230
 ### Keep things simple

0 notes on commit b560d25

Please sign in to comment.
Something went wrong with that request. Please try again.