Skip to content

Commit

Permalink
Merge pull request #35 from guerler/fixdropdowns
Browse files Browse the repository at this point in the history
Remove custom icon from dropdown menu
  • Loading branch information
dannon authored Apr 4, 2018
2 parents 1aa5f67 + 9239883 commit 3924569
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions client/galaxy/scripts/mvc/ui/ui-buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ var ButtonMenu = ButtonDefault.extend({
this.setElement(
$("<div/>").append(
(this.$root = $("<div/>")
.append((this.$icon = $("<i/>")))
.append((this.$title = $("<span/>"))))
)
);
Expand Down Expand Up @@ -296,15 +295,10 @@ var ButtonMenu = ButtonDefault.extend({
e.preventDefault();
options.onclick && options.onclick();
});
this.$icon
.removeClass()
.addClass("icon fa")
.addClass(options.icon);
this.$title
.removeClass()
.addClass("title")
.html(options.title);
options.icon && options.title && this.$icon.addClass("ui-margin-right");
this.$menu && this.$menu.remove();
if (this.collection.length > 0) {
this.$menu = $("<ul/>")
Expand Down

0 comments on commit 3924569

Please sign in to comment.