Created
December 4, 2016 01:32
-
-
Save igorsgm/8e0289a9040245113686cb8b719e00db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Marcar os Checkboxes anteriormente selecionados | |
*/ | |
function markResourceColumns(columns) { | |
// Executando apenas uma vez a espera pela finalização dos ajax da página e assim marcar | |
js(document).one("ajaxStop", function () { | |
js.each(columns, function (i, val) { | |
js("input[value='" + val + "']").prop('checked', true); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment