Skip to content

Commit

Permalink
Merge pull request #40 from phpList/git_issue_37
Browse files Browse the repository at this point in the history
remove "myclass" method and make more specific the script to resolve …
  • Loading branch information
mariez committed Dec 26, 2017
2 parents cc35082 + e9fd3e5 commit 79d61ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
7 changes: 1 addition & 6 deletions js/dist/phpList_ui_bootlist.js
Expand Up @@ -2222,7 +2222,7 @@ $('body.fixed li.list').each(function(){
$('.home .view-log span.listingname a.listingname').prepend('<span aria-hidden="true" class="glyphicon glyphicon-list-alt"/>').removeClass('listingname');
/*buttons*/
$('.home span.listingname a').addClass('btn btn-xs btn-info');
$('span.listingelement a, div.configEdit a').not('body.members a.listingelement, .home span.listingelement a,a[name]').addClass('btn btn-xs btn-primary');
$('.listingelement a.del, .listingelement a.button, .listingelement a.opendialog, .listingelement a.confirm, .listingelement a.ajaxable, body.mclicks .listingelement a, body.mviews .listingelement a, body.uclicks .listingelement a, .configEdit a').addClass('btn btn-xs btn-primary');
$('span.edit a, .edit-list a, .configEdit a').html('<span aria-hidden="true" class="glyphicon glyphicon-edit"/>');
$('.send-list a').html('<span aria-hidden="true" class="glyphicon glyphicon-send"/>');
$('.add_member a').html('<span aria-hidden="true" class="glyphicon glyphicon-plus"/>');
Expand Down Expand Up @@ -2281,11 +2281,6 @@ $('body.fixed li.list').each(function(){
});
$('a.btn-xs').attr({'data-toggle':'tooltip'});

/* remove button style to any link if developer ads "myclass" to parent element */
$('.myclass a').removeClass(function (index, css) {
return (css.match (/\bbt\S+/g) || []).join(' '); // removes anything that starts with "bt"
});

/* show page after loading */
$('body').removeClass('invisible');

Expand Down

0 comments on commit 79d61ed

Please sign in to comment.