From 11192b0207a648f2433a8f30d6a3359044992762 Mon Sep 17 00:00:00 2001 From: Paul Clarke Date: Mon, 23 May 2016 13:50:12 +1200 Subject: [PATCH 1/2] Swap out .Actions class for bootstrap .btn-toolbar --- client/dist/js/bundle-legacy.js | 2 +- client/dist/styles/SilverStripeNavigator.css | 93 ++++++++- client/dist/styles/bundle.css | 176 +++++++++++++++++- client/src/legacy/AssetAdmin.js | 14 +- client/src/legacy/CMSMain.EditForm.js | 28 +-- code/model/SiteTree.php | 2 +- templates/Includes/AssetAdmin_EditForm.ss | 2 +- templates/Includes/CMSMain_EditForm.ss | 4 +- .../Includes/CMSPageAddController_Content.ss | 4 +- 9 files changed, 293 insertions(+), 32 deletions(-) diff --git a/client/dist/js/bundle-legacy.js b/client/dist/js/bundle-legacy.js index 79dd8359..284fec7d 100644 --- a/client/dist/js/bundle-legacy.js +++ b/client/dist/js/bundle-legacy.js @@ -1,2 +1,2 @@ -!function t(e,n,i){function a(r,s){if(!n[r]){if(!e[r]){var d="function"==typeof require&&require;if(!s&&d)return d(r,!0);if(o)return o(r,!0);var l=new Error("Cannot find module '"+r+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[r]={exports:{}};e[r][0].call(c.exports,function(t){var n=e[r][1][t];return a(n?n:t)},c,c.exports,t,e,n,i)}return n[r].exports}for(var o="function"==typeof require&&require,r=0;r0&&(e._addActions(),this.bind("change",function(n){var o=e.data("OrigVal"),r=e.val();e.data("OrigVal",r),0===i.val().indexOf(i.data("defaultUrl"))&&""==a.val()?e.updateURLSegment(r):t(".update",e.parent()).show(),e.updateRelatedFields(r,o),e.updateBreadcrumbLabel(r)})),this._super()},onunmatch:function(){this._super()},updateRelatedFields:function(e,n){this.parents("form").find("input[name=MetaTitle], input[name=MenuTitle]").each(function(){var i=t(this);i.val()==n&&(i.val(e),i.updatedRelatedFields&&i.updatedRelatedFields())})},updateURLSegment:function(e){var n=t("input:text[name=URLSegment]",this.closest("form")),i=n.closest(".field.urlsegment"),a=t(".update",this.parent());i.update(e),a.is(":visible")&&a.hide()},updateBreadcrumbLabel:function(e){var n=(t(".cms-edit-form input[name=ID]").val(),t("span.cms-panel-link.crumb"));e&&""!=e&&n.text(e)},_addActions:function(){var e,n=this;e=t("