Orbit/app/assets/javascripts/ajax_form.js

17 lines
417 B
JavaScript

$(document).on('click', '#ajax_form_submit', function(){
$('#ajaxForm').ajaxSubmit({
beforeSubmit: function(a,f,o) {
o.dataType = 'script';
}
});
});
$(document).ready(function(){
var win = parent.OWindow;
var thatwindow = win.thiswindow;
alert(self.id);
$("div.button_bar input[type=submit]").click(function(){
thatwindow.document.getElementById(win.input).value = "Soemthing";
return false;
})
})