From dcc64f44f9f81d32c8071c6bdac86546eaeb57a0 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Wed, 27 May 2015 17:17:00 +0200 Subject: UI improvements * Implement visibility choice on board creation; * Rework the board header bar. Remove links to un-implemented features; * Implement a board star counter (visible if the board have >2 stars); * Define a new icon (a thin cross) to close elements; * Remove $(document).on('mouseover') event handlers that were basically fired hundreds of times for nothing, we now define a proper Tracker dependency to execute jquery-ui plugin initialization only when something has changed; * Bug fixes related to list scrolling. --- client/components/forms/inlinedform.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'client/components/forms/inlinedform.js') diff --git a/client/components/forms/inlinedform.js b/client/components/forms/inlinedform.js index b84952d2..f2774084 100644 --- a/client/components/forms/inlinedform.js +++ b/client/components/forms/inlinedform.js @@ -30,11 +30,12 @@ BlazeComponent.extendComponent({ this.isOpen = new ReactiveVar(false); }, + onDestroyed: function() { + currentlyOpenedForm.set(null); + }, + open: function() { // Close currently opened form, if any - // if (currentlyOpenedForm.get() !== null) { - // currentlyOpenedForm.get().close(); - // } EscapeActions.executeLowerThan('inlinedForm'); this.isOpen.set(true); currentlyOpenedForm.set(this); -- cgit v1.2.3-1-g7c22