https://bugzilla.wikimedia.org/show_bug.cgi?id=52623

       Web browser: ---
            Bug ID: 52623
           Summary: [TUX] Discard changes only works the second time
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Translate
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

1) Go to
https://translatewiki.net/w/i.php?title=Special:Translate&group=out-eol-0-all&language=sv&filter=&action=translate
2) Open a short message which has suggestions and existing translation
3) Apply a suggestion
4) Click discard changes

Observed: Text gets reverted but button does not disappear until clicked the
second time
Expected: Button disappears

Git bisect points to:
commit 7eaee736c75743fc67a4a9c0253fa25a84fb7ef6
Author: Santhosh Thottingal <[email protected]>
Date:   Tue Apr 9 14:33:51 2013 +0530

    Fix text change detection in IE

    Introduce textchange event that get triggered when something changed
    on input fields.

    Refactor translation textarea construction. Set the value before
    starting listening to events. Listen events only with one listener.
    Set the two dirty flags together for consistency.

    This eliminates the "You have unchanged saves" popup appearing in IE
    even when there were no changes.

    This fixes the case when it was impossible to get rid of unsaved
    status for messages which have no existing status.

    Bug: 47019
    Bug: 46266
    Change-Id: Ib5a7fecdf3cc42c7f5463bb03cae2326e1a3afbc

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to