Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82803

Possible dataTables.editor.js improvement

$
0
0

I was looking through the dataTables.editor.js code and I noticed the information message on the Editor gets hidden, but never cleared out. This causes a fade out effect sometimes when I bring up the editor again and intend to have an empty info message. Could you modify the dataTables.editor.js code to clear out the old information message when its no longer needed rather than hide it?

Editor.prototype._message = function ( el, msg )
{
    if ( ! msg && this.s.displayed ) {
        // Clear the message with visual effect since the form is visible
        $(el).fadeOut();
    }
    else if ( ! msg ) {
        // Clear the message without visual effect
        el.style.display = "none";
    }
    else if ( this.s.displayed ) {
        // Show the message with visual effect
        $(el).html( msg ).fadeIn();
    }
    else {
        // Show the message without visual effect
        $(el).html( msg );
        el.style.display = "block";
    }
};

Viewing all articles
Browse latest Browse all 82803

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>