Disable all the other tabs if editing the default prize template

This commit is contained in:
james 2009-09-17 19:25:14 +00:00
parent 8269821a69
commit cb5bb16953

View File

@ -678,13 +678,13 @@ function popup_editor(id)
award_id = id; award_id = id;
if(id == -1) { if(id == -1) {
$('#editor_tabs').tabs('option', 'disabled', [0, 1]);
$('#editor_tabs').tabs('option', 'selected', 2); $('#editor_tabs').tabs('option', 'selected', 2);
$('#editor_tabs').tabs('option', 'disabled', [0, 1, 3]);
} else { } else {
$('#editor_tabs').tabs('option', 'disabled', []); $('#editor_tabs').tabs('option', 'disabled', []);
$('#editor_tabs').tabs('option', 'selected', 0); $('#editor_tabs').tabs('option', 'selected', 0);
update_awardinfo();
} }
update_awardinfo();
return 0; return 0;
} }