Skip to content

Commit

Permalink
Dev: default submit in preview is OK, but use data
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Jan 7, 2014
1 parent 80c3d69 commit 59661af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/survey_runtime.js
Expand Up @@ -243,6 +243,7 @@ function activateLanguageChanger(){
$(document).on('change','select.languagechanger', function() {
if($(this).hasClass('previewmode'))
{
var target=$(this).data('targeturl');
$('<form>', {
"html": '<input type="hidden" name="lang" value="' + $(this).find('option:selected').val() + '" />',
"action": target
Expand Down

0 comments on commit 59661af

Please sign in to comment.