Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- $('form[name=search_syllabi]').submit(function(){
- ColdFusion.Ajax.submitForm("search_syllabi", "results.cfm");
- //Results Styling
- $('#dataTable tr:even').css('background-color', '#EEE');
- $('#dataTable tr:first').css('background-color', '#CCE1CE');
- $('#dataTable tr:first').css('font-weight', 'bold');
- $('.syllabi').show();
- //JQuery UI dialog for Uploading Syllabi
- $('#dialog_syllabi').dialog({
- autoOpen: false,
- width: 400,
- modal: true,
- buttons: {
- "Ok": function() {document.forms["uploadForm"].submit();},
- "Cancel": function() {$(this).dialog("close");
- }
- }});
- $('.dialog_syllabi_link').click(function(){
- var data = $(this).attr('id');
- var titles = $(this).attr('title');
- $('#dialog_syllabi').dialog({title: titles, modal: true});
- var urlD = 'fileupload.cfm' + data;
- $.ajax({
- type: 'post', url: urlD,
- success: function(){
- $('#dialog_syllabi').load(urlD);
- $('#dialog_syllabi').dialog('open');
- }
- });
- return false; //dialog return
- });
- return false; //submit return
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment