VRFS-648. Add Resync button to session screen.
This commit is contained in:
parent
bc2b52196e
commit
83b6383fc1
Binary file not shown.
|
After Width: | Height: | Size: 320 B |
|
|
@ -779,7 +779,20 @@
|
|||
}
|
||||
}
|
||||
|
||||
function sessionResync(evt) {
|
||||
evt.preventDefault();
|
||||
var response = context.jamClient.FTUESave(true);
|
||||
if (response) {
|
||||
app.notify({
|
||||
"title": "Error",
|
||||
"text": response,
|
||||
"icon_url": "/assets/content/icon_alert_big.png"});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function events() {
|
||||
$('#session-resync').on('click', sessionResync);
|
||||
$('#session-contents').on("click", '[action="delete"]', deleteSession);
|
||||
$('#tracks').on('click', 'div[control="mute"]', toggleMute);
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
[layout-id="session"] {
|
||||
|
||||
.settings {
|
||||
.resync {
|
||||
margin-left:15px;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,11 @@
|
|||
|
||||
<!-- session controls -->
|
||||
<div id="session-controls">
|
||||
<a class="button-grey settings left" layout-link="session-settings">
|
||||
<a class="button-grey resync left" id="session-resync">
|
||||
<%= image_tag "content/icon_resync.png", {:align => "texttop", :height => 14, :width => 12} %>
|
||||
RESYNC
|
||||
</a>
|
||||
<a class="button-grey left" layout-link="session-settings">
|
||||
<%= image_tag "content/icon_settings_sm.png", {:align => "texttop", :height => 12, :width => 12} %>
|
||||
SETTINGS
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue