mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
parent
9ab69adb38
commit
9ccd6d11d8
1 changed files with 10 additions and 4 deletions
|
|
@ -170,10 +170,16 @@ function update_order(event, ui){
|
|||
/* Unobtrusive jQuery behavior */
|
||||
|
||||
function project_defaults(){
|
||||
if(defaultContexts[$(this).val()] !== undefined) {
|
||||
context_name = $(this).parents('form').find('input[name=context_name]');
|
||||
if(context_name.attr('edited') === undefined){
|
||||
context_name.val(defaultContexts[$(this).val()]);
|
||||
if($('body').hasClass('contexts')){
|
||||
// don't change the context
|
||||
// see ticket #934
|
||||
}
|
||||
else {
|
||||
if(defaultContexts[$(this).val()] !== undefined) {
|
||||
context_name = $(this).parents('form').find('input[name=context_name]');
|
||||
if(context_name.attr('edited') === undefined){
|
||||
context_name.val(defaultContexts[$(this).val()]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(defaultTags[$(this).val()] !== undefined) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue