Skip to content

Commit

Permalink
Swap functionality for smaller screen (fixes #168)
Browse files Browse the repository at this point in the history
* Swapbutton for small screen functionality

* Remove trailing spaces
  • Loading branch information
share-with-me authored and sushain97 committed Jul 22, 2017
1 parent c9a5176 commit 1859e7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,20 +179,20 @@ if(modeEnabled('translation')) {
if(recentSrcLangs.indexOf(curSrcLang) !== -1) {
$('.srcLang').removeClass('active');
$('#srcLang' + (recentSrcLangs.indexOf(curSrcLang) + 1)).addClass('active');
$('#srcLangSelect').val(curSrcLang);
}
else {
recentSrcLangs[recentSrcLangs.indexOf(srcCode)] = curSrcLang;
}
$('#srcLangSelect').val(curSrcLang);

if(recentDstLangs.indexOf(curDstLang) !== -1) {
$('.dstLang').removeClass('active');
$('#dstLang' + (recentDstLangs.indexOf(curDstLang) + 1)).addClass('active');
$('#dstLangSelect').val(curDstLang);
}
else {
recentDstLangs[recentDstLangs.indexOf(dstCode)] = curDstLang;
}
$('#dstLangSelect').val(curDstLang);

refreshLangList(true);
muteLanguages();
Expand Down

0 comments on commit 1859e7c

Please sign in to comment.