From 7e37abeb217cd0e214ad1e291d6e965fc2b40cce Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Thu, 14 Apr 2016 11:19:10 +1200 Subject: [PATCH] BUG Fix chosen dropdown on settings being cropped --- javascript/dist/CMSMain.EditForm.js | 11 +++++-- javascript/dist/bundle-legacy.js | 2 +- javascript/src/CMSMain.EditForm.js | 51 ++++++++++++++++------------- 3 files changed, 39 insertions(+), 25 deletions(-) diff --git a/javascript/dist/CMSMain.EditForm.js b/javascript/dist/CMSMain.EditForm.js index 1cea35de..3d0b7df6 100644 --- a/javascript/dist/CMSMain.EditForm.js +++ b/javascript/dist/CMSMain.EditForm.js @@ -132,11 +132,18 @@ }, _toggleSelection: function _toggleSelection(e) { - var selected = this.find(':input[name=ParentType]:checked').val(); + var selected = this.find(':input[name=ParentType]:checked').val(), + holder = this.find('#Form_EditForm_ParentID_Holder'); if (selected == 'root') this.find(':input[name=ParentID]').val(0);else this.find(':input[name=ParentID]').val(this.find('#Form_EditForm_ParentType_subpage').data('parentIdValue')); - this.find('#Form_EditForm_ParentID_Holder').toggle(selected != 'root'); + if (selected != 'root') { + holder.slideDown(400, function () { + $(this).css('overflow', 'visible'); + }); + } else { + holder.slideUp(); + } }, _changeParentId: function _changeParentId(e) { diff --git a/javascript/dist/bundle-legacy.js b/javascript/dist/bundle-legacy.js index f77a03ea..1013382e 100644 --- a/javascript/dist/bundle-legacy.js +++ b/javascript/dist/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("