You are here: Foswiki>Tasks Web>Item11610 (15 Jan 2013, MichaelDaum)Edit Attach

Item11610: Add "Saving" dialog using System.JQueryBlockUI similar to Save and Continue

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: NatEditPlugin
Branches: trunk
Reported By: PadraigLennon
Waiting For:
Last Change By: MichaelDaum
On a local install where I work I make use of a Wiki App for capturing requests which in turn uses the AUTOINC feature to generate the topic name. Sometimes the save can be slow and users continue to click on the save button which results in a number of topics being generated.

It would be very useful to have something similar to the "Save and Continue" which presents the user with a "Saving" dialog.

From http://irclogs.foswiki.org/bin/irclogger_log/foswiki?date=2012-02-27,Mon&sel=506#l502

padraig_lennon   Just wondering if there was much involved in adding the model window to your MetaCommentPlugin? I think it would be great to have it by default when saving a topic.. I'm constantly running into issues where users doubleclick on the save button when creating an auto-generated topic... 
thus creating a number of empty topics..   [14:40]
MichaelDaum   you mean this "Wait a sec, I am about to do this and this ..." bubble?   [14:41]
padraig_lennon   Yes exactly..   [14:41]
MichaelDaum   that's pretty easy to make use of: see System.JQueryBlockUI

Maybe this could be made optional if other users do not want it?

-- PadraigLennon - 06 Mar 2012

Try this patch:

--- pub/System/NatEditPlugin/edit.uncompressed.js       (revision 14214)
+++ pub/System/NatEditPlugin/edit.uncompressed.js       (working copy)
@@ -188,7 +188,10 @@
       $("#save").click(function() {
         editAction = "save";
         if (submitHandler()) {
+          $.blockUI({message:'<h1> Saving ... </h1>'});
           $editForm.submit();
+        } else {
+          $.unblockUI();
         }

Will be part of the next release.

-- MichaelDaum - 06 Mar 2012

Found an issue with the "Saving" change you made to the NatEditPlugin the other day.. If I am editing a topic with a form and forget to fill out a formfield NatEditPlugin will throw an error stating that mandatory fields are not filled in but the "Saving" persists and the only way to get out of the situation is to completely refresh the topic (and losing updates to the topic)

Here is a screenshot

saving-form-error.png

 

ItemTemplate edit

Summary Add "Saving" dialog using JQueryBlockUI similar to Save and Continue
ReportedBy PadraigLennon
Codebase
SVN Range
AppliesTo Extension
Component NatEditPlugin
Priority Enhancement
CurrentState Closed
WaitingFor
Checkins Rev 14433 not found
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches trunk
trunkCheckins Rev 14433 not found
Release01x01Checkins
I Attachment Action Size Date Who Comment
saving-form-error.pngpng saving-form-error.png manage 17 K 09 Mar 2012 - 12:47 PadraigLennon  
Topic revision: r6 - 15 Jan 2013, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy