U4-5212 - Preview button only greyed and not disabled while previewing. (was save button)

Created by Adrian Holland 11 Jul 2014, 00:50:25 Updated by Shannon Deminick 22 Jul 2014, 18:31:40

Relates to: U4-5228

Relates to: U4-3650

When creating a new document or editing an existing one then selecting the save button, the buttons are greyed out while the save is in progress. They are not however disabled and still clickable. If a user mistakenly (or impatiently) clicks the save button again while saving this results in multiple documents.


Adrian Holland 11 Jul 2014, 00:51:10

Looks like this fix only partially resolved the issue.

Shannon Deminick 16 Jul 2014, 03:34:16

I cannot replicate this - each button when clicked executes the 'performAction' method on the content edit controller, this method first checks if $scope.busy is false and then allows the logic to continue. As soon as you click a button, $scope.busy is set to true to prevent any sort of double clicking

Adrian Holland 16 Jul 2014, 04:19:05

Hi Shannon, sorry I should have been clearer on which button I was using - our Preview button is called 'Save and Preview' (as that's what the Preview appears to do) so we have 'Save and Preview' and 'Save and Publish' buttons. I have tried the save and publish button and that is actually fine, so in fact it is the 'Preview' button that I should be reported in the title of this issue. (I have renamed it accordingly) We ran into an issue where due to lots of content (and lots of content in the recycle bin) the preview button would take up to a minute to preview the document. When creating a new document this resulted in numerous clicks - all of which saved a new document with name (1), name (2) etc. I hope you don't mind me reopening this issue now that I have clearer information.

Robert Foster 17 Jul 2014, 03:39:10

Could the multiple documents part of this issue be related to this bug? U4-4782 Duplicate content after validation error correction

Shannon Deminick 22 Jul 2014, 18:31:34

Fixed in cd8b8dc7048672cd4016c5f3cbcef92e69faefcc

We now ensure that the logic does not continue if the form is submitting.

@Robert it could be related to that too.

Priority: Normal

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.1.4

Due in version: 7.1.5


Story Points: