Sha256: e8a02d5da98bedf475d62609d39863a9808c05a89bbffee3e52d2d5e0df71973

Contents?: true

Size: 949 Bytes

Versions: 3

Compression:

Stored size: 949 Bytes

Contents

// 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)
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
friends_ajax_core-0.0.55 app/assets/javascripts/ajax_callbacks_core/forms.js.erb
friends_ajax_core-0.0.52 app/assets/javascripts/ajax_callbacks_core/forms.js.erb
friends_ajax_core-0.0.51 app/assets/javascripts/ajax_callbacks_core/forms.js.erb