Created
November 30, 2016 21:20
-
-
Save igorsgm/ed0373edb2a883431e16dff7146c414c 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
/** | |
* Função para setar elementos previamente selecionadas | |
*/ | |
function setListsOfItem() { | |
js(document).one("ajaxStop", function () { | |
js('input:hidden.listas').each(function () { | |
var name = js(this).attr('name'); | |
if (name.indexOf('listashidden')) { | |
js('#jform_listas option[value="' + js(this).val() + '"]').attr('selected', true); | |
} | |
}); | |
js("#jform_listas").trigger("liszt:updated"); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment