From 7f22809ebfe96ff9dc06fb4e20fca2041d1b643c Mon Sep 17 00:00:00 2001 From: Phil Dye Date: Wed, 19 Jun 2013 17:55:00 +0200 Subject: [PATCH] U4-1478 Create button still visible when not active --- .../umbraco_client/Application/UmbracoApplicationActions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI/umbraco_client/Application/UmbracoApplicationActions.js b/src/Umbraco.Web.UI/umbraco_client/Application/UmbracoApplicationActions.js index 933ba3b5b0..198bbefd42 100644 --- a/src/Umbraco.Web.UI/umbraco_client/Application/UmbracoApplicationActions.js +++ b/src/Umbraco.Web.UI/umbraco_client/Application/UmbracoApplicationActions.js @@ -111,16 +111,16 @@ Umbraco.Application.Actions = function () { this._currApp = whichApp.toLowerCase(); if (this._currApp != 'media' && this._currApp != 'content' && this._currApp != 'member') { - jQuery("#buttonCreate").attr("disabled", "true"); + jQuery("#buttonCreate").attr("disabled", "true").fadeOut(400); jQuery("#FindDocuments .umbracoSearchHolder").fadeOut(400); } else { // create button should still remain disabled for the memebers section if (this._currApp == 'member') { - jQuery("#buttonCreate").attr("disabled", "true"); + jQuery("#buttonCreate").attr("disabled", "true").css("display", "inline-block").css("visibility", "hidden"); } else { - jQuery("#buttonCreate").removeAttr("disabled"); + jQuery("#buttonCreate").removeAttr("disabled").fadeIn(500).css("visibility", "visible"); } jQuery("#FindDocuments .umbracoSearchHolder").fadeIn(500); //need to set the recycle bin node id based on app