Skip to content

Commit

Permalink
Improved icon in Form Events
Browse files Browse the repository at this point in the history
  • Loading branch information
giterlizzi committed Mar 30, 2022
1 parent 141f3d6 commit e99d49e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,19 @@ var dw_template = {
// Toolbar
jQuery('#tool__bar').addClass('btn-group');

// Add icons
jQuery('[data-dw-icon]').each(function () {
var $self = jQuery(this);
var $icon = jQuery('<span class="iconify mr-1">').attr('data-icon', $self.attr('data-dw-icon'));

if ($self.attr('data-dw-icon-target')) {
$self.find($self.attr('data-dw-icon-target')).prepend($icon);
} else {
$self.prepend($icon);
}

});

// Picker
// if (dw_mode('edit')) {
// jQuery('.picker').addClass('btn-group');
Expand Down

0 comments on commit e99d49e

Please sign in to comment.