Changeset 188 in t29-www for en


Ignore:
Timestamp:
Sep 3, 2010, 5:23:59 AM (13 years ago)
Author:
sven
Message:

Patched translation system with a simple spinner for longer loading times at incubator.technikum29.de :-)

Location:
en/dev/translation
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • en/dev/translation/editor.css

    r187 r188  
    7777        margin-bottom: 3px;
    7878}
     79#tr-editor  .spinner { display: none; float: right; }
     80#tr-editor.loading .spinner { display: block; }
     81#tr-editor.loading .buttons { visibility: hidden; }
    7982#tr-editor.success { background-color: #ACDCA1; }
    8083#tr-editor.success .buttons { visibility:hidden; }
  • en/dev/translation/editor.js

    r187 r188  
    263263                        alert("I'm sorry, submitting the text failed due to "+textStatus
    264264                                +"\nPlease mail your text to "+"ed.92mukinhcet@ved".split("").reverse().join(""));
     265                        t29.tr.editorbox.removeClass('loading');
    265266                },
    266267                data: {
     
    272273                }
    273274        });
     275       
     276        // wg. langen Ladezeiten: Buttons ausblenden!
     277        t29.tr.editorbox.addClass('loading');
    274278};
    275279
     
    281285t29.tr.submit_successful = function(server_data) {
    282286        // Editorbox
    283         t29.tr.editorbox.addClass('success').prepend("<div class='response'>Thank you! :-)</div>");
     287        t29.tr.editorbox.removeClass('loading').addClass('success').prepend("<div class='response'>Thank you! :-)</div>");
    284288        t29.tr.editorbox.delay(1100).fadeOut(1000, function(){
    285289                t29.tr.set_editing(false); // sic - hard finishing.
     
    304308t29.tr.create_editorui = function() {
    305309        t29.tr.editorbox.html(
    306                 "<div class='buttons'>"
     310                "<div class='spinner'><img src='/en/dev/translation/loading.gif' title='Ongoing Data transmission'> saving...</div>"
     311                +"<div class='buttons'>"
    307312                        +"<div class='smaller'>"
    308313                                +"<div class='button white small help'>Help</div>"
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License