Plugin Directory

Changeset 2143022


Ignore:
Timestamp:
08/21/2019 09:30:27 AM (7 years ago)
Author:
upcast
Message:

Fixed javascript bug

Location:
elvantools/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • elvantools/trunk/elvantotools.js

    r1829625 r2143022  
    77  });
    88  $('.elvantotools_go_fullscreen').on('click', function() {
    9       if ($(this).hasClass('elvantotools_fullscreen_on')) {
    10           $(this).removeClass('elvantotools_fullscreen_on');
    11           $('.elvantotools_roster,.elvantotools_songs').removeClass('elvantotools_fullscreen');
    12       } else {
    13           $(this).addClass('elvantotools_fullscreen_on');
    14           $('.elvantotools_roster,.elvantotools_songs').addClass('elvantotools_fullscreen');
    15       }
     9    if ($(this).hasClass('elvantotools_fullscreen_on')) {
     10            $(this).removeClass('elvantotools_fullscreen_on');
     11            $('.elvantotools_roster,.elvantotools_songs').removeClass('elvantotools_fullscreen');
     12    } else {
     13            $(this).addClass('elvantotools_fullscreen_on');
     14            $('.elvantotools_roster,.elvantotools_songs').addClass('elvantotools_fullscreen');
     15    }
    1616  });   
    1717  $('.elvantotools_play').on('click', function() {
    18       if (this.mp3) {
    19           if (this.mp3.paused) {
    20               this.mp3.play();
    21           } else {
    22               this.mp3.pause();
    23           }
    24       } else {
    25           this.mp3 = new Audio($(this).attr('href'));
    26           this.mp3.play();
    27       }
    28       return false;
     18    if (this.mp3) {
     19            if (this.mp3.paused) {
     20                this.mp3.play();
     21            } else {
     22                this.mp3.pause();
     23            }
     24    } else {
     25        this.mp3 = new Audio($(this).attr('href'));
     26        this.mp3.play();
     27    }
     28    return false;
    2929  });
    3030  $('.elvantotools_map_search input, .elvantotools_map_search select').on('change', function () {
    31      
    32   }
     31
     32  });
    3333})( jQuery );
  • elvantools/trunk/elvantotools.php

    r2092189 r2143022  
    33 * @package ElvantoTools
    44 * @author JagTech
    5  * @version 2.2
     5 * @version 2.3
    66 */
    77/*
     
    1010Description: Display rosters and song lists from Elvanto
    1111Author: JagTech
    12 Version: 2.2
     12Version: 2.3
    1313Author URI: http://jagtech.biz
    1414*/
  • elvantools/trunk/readme.txt

    r2092189 r2143022  
    33Tags: plugin,widget,elvanto,church,roster,songs
    44Requires at least: 4.2.2
    5 Tested up to: 5.0.4
    6 Stable tag: 2.2
     5Tested up to: 5.2.2
     6Stable tag: 2.3
    77
    88ElvantoTools is a plugin that allows the display of Elvanto information
     
    8080v2.2
    8181Fixed link to mp3 preview of song
     82v2.3
     83Fixed a bug in the javascript functions file
Note: See TracChangeset for help on using the changeset viewer.