-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
157 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
src/js/foreground/view/listItemButton/moreActionsButtonView.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/js/foreground/view/listItemButton/playlistOptionsButtonView.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
define(function(require) { | ||
'use strict'; | ||
|
||
var ListItemButton = require('foreground/view/behavior/listItemButton'); | ||
var PlaylistActions = require('foreground/model/playlist/playlistActions'); | ||
var OptionsListItemButtonTemplate = require('text!template/listItemButton/optionsListItemButton.html'); | ||
var OptionsIconTemplate = require('text!template/icon/optionsIcon_18.svg'); | ||
|
||
var PlaylistOptionsButtonView = Marionette.ItemView.extend({ | ||
template: _.template(OptionsListItemButtonTemplate), | ||
templateHelpers: { | ||
optionsIcon: _.template(OptionsIconTemplate)() | ||
}, | ||
|
||
attributes: { | ||
'data-tooltip-text': chrome.i18n.getMessage('moreOptions') | ||
}, | ||
|
||
behaviors: { | ||
ListItemButton: { | ||
behaviorClass: ListItemButton | ||
} | ||
}, | ||
|
||
onClick: function() { | ||
var offset = this.$el.offset(); | ||
var playlistActions = new PlaylistActions(); | ||
playlistActions.showContextMenu(this.model, offset.top, offset.left); | ||
} | ||
}); | ||
|
||
return PlaylistOptionsButtonView; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/js/foreground/view/listItemButton/songOptionsButtonView.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
define(function(require) { | ||
'use strict'; | ||
|
||
var ListItemButton = require('foreground/view/behavior/listItemButton'); | ||
var SongActions = require('foreground/model/song/songActions'); | ||
var OptionsListItemButtonTemplate = require('text!template/listItemButton/optionsListItemButton.html'); | ||
var OptionsIconTemplate = require('text!template/icon/optionsIcon_18.svg'); | ||
|
||
var SongOptionsButtonView = Marionette.ItemView.extend({ | ||
template: _.template(OptionsListItemButtonTemplate), | ||
templateHelpers: { | ||
optionsIcon: _.template(OptionsIconTemplate)() | ||
}, | ||
|
||
attributes: { | ||
'data-tooltip-text': chrome.i18n.getMessage('moreOptions') | ||
}, | ||
|
||
behaviors: { | ||
ListItemButton: { | ||
behaviorClass: ListItemButton | ||
} | ||
}, | ||
|
||
onClick: function() { | ||
var offset = this.$el.offset(); | ||
var songActions = new SongActions(); | ||
songActions.showContextMenu(this.model, offset.top, offset.left, this.player); | ||
} | ||
}); | ||
|
||
return SongOptionsButtonView; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.