Skip to content

Instantly share code, notes, and snippets.

@igorsgm
Created December 4, 2016 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorsgm/8e0289a9040245113686cb8b719e00db to your computer and use it in GitHub Desktop.
Save igorsgm/8e0289a9040245113686cb8b719e00db to your computer and use it in GitHub Desktop.
/**
* 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