From 88b4ae65cc51041f866ee47c66a7764aa3e107f8 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Mon, 12 Dec 2016 18:06:14 +1300 Subject: [PATCH] API Add css class to assist with bootstrapping entwine sections --- admin/client/dist/js/bundle.js | 2 +- admin/client/src/boot/index.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/client/dist/js/bundle.js b/admin/client/dist/js/bundle.js index 6b5d4e99a..2a0f785f9 100644 --- a/admin/client/dist/js/bundle.js +++ b/admin/client/dist/js/bundle.js @@ -2162,7 +2162,7 @@ var e={},t=(0,l.combineReducers)(g["default"].getAll()),n=[c["default"]],i=h["de var p=o(l.createStore),m=p(t,e) m.dispatch(y.setConfig(h["default"].getAll())),window.ss=window.ss||{},window.ss.store=m var v=new s["default"](m) -v.start(window.location.pathname)}var a=n(204),s=r(a),l=n(108),u=n(226),c=r(u),d=n(110),f=n(225),p=n(146),h=r(p),m=n(227),g=r(m),v=n(228),y=i(v),b=n(230),_=r(b),w=n(231),C=r(w),T=n(232),E=r(T),P=n(233),O=r(P),S=n(235),k=r(S),j=n(236),x=r(j),R=n(252),I=r(R),A=n(10),D=r(A) +v.start(window.location.pathname),window.jQuery("body").addClass("react-boot")}var a=n(204),s=r(a),l=n(108),u=n(226),c=r(u),d=n(110),f=n(225),p=n(146),h=r(p),m=n(227),g=r(m),v=n(228),y=i(v),b=n(230),_=r(b),w=n(231),C=r(w),T=n(232),E=r(T),P=n(233),O=r(P),S=n(235),k=r(S),j=n(236),x=r(j),R=n(252),I=r(R),A=n(10),D=r(A) D["default"].polyfill(),window.onload=o},function(e,t,n){"use strict" diff --git a/admin/client/src/boot/index.js b/admin/client/src/boot/index.js index 1e7595867..be50f0af3 100644 --- a/admin/client/src/boot/index.js +++ b/admin/client/src/boot/index.js @@ -68,6 +68,10 @@ function appBoot() { // Bootstrap routing const routes = new BootRoutes(store); routes.start(window.location.pathname); + + // @TODO - Remove once we remove entwine + // Enable top-level css selectors for react-dependant entwine sections + window.jQuery('body').addClass('react-boot'); } window.onload = appBoot;