VRFS-648. Add Resync button to session screen.

This commit is contained in:
Jonathon Wilson 2013-09-14 11:27:03 -06:00
parent bc2b52196e
commit 83b6383fc1
4 changed files with 19 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

View File

@ -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);

View File

@ -2,7 +2,7 @@
[layout-id="session"] {
.settings {
.resync {
margin-left:15px;
}

View File

@ -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>