// initialisierung des Default Links initSelectOnchange = function(){ // Default Ajax Link, formerly known as 'ajax_default_link'-Helper // Data will be automatically rendered into ajax overlay container, after showing loading message // add 'update-div-...' to set custom div to render data in! select_actions = $("select.<%= FORM_SELECT_CHANGE_SELECTOR %>.<%= AJAX_NOT_LOADED %>"); select_actions.change(function(){ // Daten zusammenladen link_options = linkOptionsFromClassName(this); console.log(link_options) // Url erstellen url = $(this).attr('<%= HTML_DATA_TARGET_URL %>').replace('<%= HTML_URL_VALUE_PLACEHOLDER %>', this.value); // Feuer frei remote_function(url, link_options['target_div'], link_options['load_message'] == true, link_options['submit_data']); }) select_actions.removeClass("<%= AJAX_NOT_LOADED %>") } hideParentOverlay = function(e){ $(e).parents(".info-overlay").slideUp(200) }