Sha256: 4d01de2eef93a853ac30eb26b8b9cee7db8ab3906e4e58ed4cb031bd0e7dceab

Contents?: true

Size: 462 Bytes

Versions: 7

Compression:

Stored size: 462 Bytes

Contents

(function(){
    var $ = document.id;

    document.addEvent('domready', function() {
        var messages = $('flash-messages');

        if (messages) {
            var close = messages.getElement('a');
            var hideMessages = function() { messages.slide('out'); };

            close.addEvent('click', function(e) {
                e.stop();
                hideMessages();
            });

            hideMessages.delay(10000);
        }
    })
})();

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
playmo-0.1.1 lib/playmo/recipes/templates/application_helper_recipe/flash_messages.js
playmo-0.1.0 lib/playmo/recipes/templates/application_helper_recipe/flash_messages.js
playmo-0.0.18 lib/playmo/recipes/templates/application_helper_recipe/flash_messages.js
playmo-0.0.17 lib/playmo/recipes/templates/application_helper_recipe/flash_messages.js
playmo-0.0.14 lib/playmo/recipes/templates/application_helper_recipe/flash_messages.js
playmo-0.0.13 lib/playmo/recipes/templates/application_helper_recipe/flash_messages.js
playmo-0.0.12 lib/playmo/recipes/templates/application_helper_recipe/flash_messages.js