resources/assets/js/report.js
/**
     * @desc Saves the current state of the dom, to be part of the html intial node.
     */
@desc Saves the current state of the dom, to be part of the html intial node.
@desc Saves the current state of the dom to be part of the html intial node .
function saveCurrentDomState(){
        $("input, textarea:not('.smartEditor')").each(function () {
            this.defaultValue = this.value;
        });
        $(" select > option").each(function () {
            if (this.selected)
            {
                this.setAttribute("selected", true);
            } else
            {
                this.removeAttribute("selected");
            }
        });
    }
function saveCurrentDomState ( ) { $ ( "input, textarea:not('.smartEditor')" ) . each ( function ( ) { this . defaultValue = this . value ; } ) ; $ ( " select > option" ) . each ( function ( ) { if ( this . selected ) { this . setAttribute ( "selected" , true ) ; } else { this . removeAttribute ( "selected" ) ; } } ) ; }
@desc Saves the current state of the dom, to be part of the html intial node.
@desc Saves the current state of the dom to be part of the html intial node .
// it's defaultValue so we can use innerHTML // go through each select and replace // it's selection so we can use innerHTML