phpbb-extensions/boardrules

View on GitHub
adm/style/boardrules.js

Summary

Maintainability
A
0 mins
Test Coverage
(function($) { // Avoid conflicts with other libraries

    'use strict';

    $('#boardrules_font_icon').on('keyup blur', function() {
        var input = $(this).val();
        var $icon = $(this).next('i');
        if (input.length > 0) {
            $icon.attr('class', 'icon fa-' + input);
        } else {
            $icon.attr('class', '');
        }
    });

})(jQuery);