forked from science-ation/science-ation
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:
parent
715e72c0c8
commit
7b068cd83f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user