You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
911 B

  1. /*
  2. * DokuWiki Bootstrap3 Template: Plugins Hacks!
  3. *
  4. * Home http://dokuwiki.org/template:bootstrap3
  5. * Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
  6. * License GPL 2 (http://www.gnu.org/licenses/gpl.html)
  7. */
  8. // Translation Plugin
  9. var $translation = jQuery('#dw__translation');
  10. if ($translation.length) {
  11. var $current = $translation.find('.cur'),
  12. $lang = $current.text(),
  13. $iso = $lang.match(/\(([a-z]*)\)/),
  14. $flag = $current.find('img');
  15. $current.parent().addClass('active');
  16. $translation.find('.wikilink2').removeClass('wikilink2').css('opacity', '0.5');
  17. if ($flag.length) {
  18. $translation.find('.dropdown-toggle .iconify').hide();
  19. $translation.find('.dropdown-toggle').prepend(
  20. jQuery('<img/>').attr({
  21. 'src': $flag.attr('src'),
  22. 'title': $flag.attr('title')
  23. }));
  24. }
  25. }