Load the information into the tab when the dialog is opened (fixes it not reloading the data when you close and reopen the dialog)

This commit is contained in:
james 2009-09-17 18:50:37 +00:00
parent 715e72c0c8
commit 7b068cd83f

View File

@ -253,6 +253,7 @@ var award_id = 0;
function update_awardinfo() function update_awardinfo()
{ {
var id = award_id; var id = award_id;
if(!award_id) return false;
// alert("id="+award_id); // alert("id="+award_id);
notice_div_id('award_notice'); notice_div_id('award_notice');
$.getJSON("<?=$_SERVER['PHP_SELF']?>?action=awardinfo_load&id="+id, $.getJSON("<?=$_SERVER['PHP_SELF']?>?action=awardinfo_load&id="+id,
@ -439,7 +440,7 @@ $(document).ready(function() {
break; break;
} }
}, },
selected: -1, selected: 0,
}); });
}); });
@ -683,6 +684,7 @@ function popup_editor(id)
$('#editor_tabs').tabs('option', 'disabled', []); $('#editor_tabs').tabs('option', 'disabled', []);
$('#editor_tabs').tabs('option', 'selected', 0); $('#editor_tabs').tabs('option', 'selected', 0);
} }
update_awardinfo();
return 0; return 0;
} }