forked from science-ation/science-ation
Disable all the other tabs if editing the default prize template
This commit is contained in:
parent
8269821a69
commit
cb5bb16953
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user