|
|
@ -188,16 +188,19 @@ |
|
|
function BOB_takeThe1Pictures() { |
|
|
function BOB_takeThe1Pictures() { |
|
|
$.get('/booth/dslr/takepicture/'+BOB_var_context.boothId+'/'+BOB_var_context.pictureId, function(pResponse) { |
|
|
$.get('/booth/dslr/takepicture/'+BOB_var_context.boothId+'/'+BOB_var_context.pictureId, function(pResponse) { |
|
|
if( pResponse.error ) { |
|
|
if( pResponse.error ) { |
|
|
if( confirm(pResponse.error) ) { |
|
|
|
|
|
BOB_var_context.boothOnGoing = false; |
|
|
|
|
|
$('#idViewCountdown').fadeOut(500, function() { |
|
|
|
|
|
$('#idViewTrigger').fadeIn(); |
|
|
|
|
|
}); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if( confirm(pResponse.error) ) { |
|
|
|
|
|
// BOB_var_context.boothOnGoing = false; |
|
|
|
|
|
// $('#idViewCountdown').fadeOut(500, function() { |
|
|
|
|
|
// $('#idViewTrigger').fadeIn(); |
|
|
|
|
|
// }); |
|
|
|
|
|
// return; |
|
|
|
|
|
// } |
|
|
|
|
|
$('#idViewCountdown').html("Oops ! Un problème de pellicule<br/>On Recommence !!!"); |
|
|
|
|
|
$('#idViewCountdown').css('fontSize', '14em') |
|
|
|
|
|
} else { |
|
|
|
|
|
BOB_var_context.pictureId += 1 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
BOB_var_context.pictureId += 1; |
|
|
|
|
|
if( BOB_var_context.pictureId < 4 ) { |
|
|
if( BOB_var_context.pictureId < 4 ) { |
|
|
BOB_var_context.onGoingTimer = BOB_var_context.initTimer; |
|
|
BOB_var_context.onGoingTimer = BOB_var_context.initTimer; |
|
|
BOB_countdown(); |
|
|
BOB_countdown(); |
|
|
|