* more error handling
This commit is contained in:
parent
badeb5ba70
commit
a43399a95d
|
|
@ -12,4 +12,4 @@ pre-start script
|
|||
chown jam-admin:jam-admin /var/run/jam-admin
|
||||
end script
|
||||
|
||||
exec start-stop-daemon --start --chdir /var/lib/jam-admin --exec /var/lib/jam-admin/script/package/upstart-run.sh
|
||||
exec start-stop-daemon --start --chdir /var/lib/jam-admin --exec /var/lib/jam-admin/script/package/upstart-run.sh
|
||||
|
|
|
|||
|
|
@ -5,31 +5,25 @@
|
|||
context.JK.ShareDialog = function(app, entityId, entityType) {
|
||||
var logger = context.JK.logger;
|
||||
var rest = context.JK.Rest();
|
||||
var dialogId = '#share-dialog'
|
||||
|
||||
function socialShare() {
|
||||
var shareWithFacebook = $('.share-with-facebook').is(':checked');
|
||||
var shareWithGoogle = $('.share-with-google').is(':checked');
|
||||
var shareWithTwitter = $('.share-with-twitter').is(':checked');
|
||||
|
||||
console.log("")
|
||||
if(!shareWithFacebook && !shareWithGoogle && !shareWithTwitter) {
|
||||
$('.share-options').addClass('error')
|
||||
}
|
||||
}
|
||||
function registerEvents(onOff) {
|
||||
|
||||
$('#dialog-share-button').unbind('click').click(function(e){
|
||||
$('.dialog-share-button').unbind('click').click(function(e){
|
||||
socialShare();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
this.fb_login = function() {
|
||||
FB.login(function(response) {
|
||||
handle_fblogin_response(response);
|
||||
}, {scope:'publish_stream'});
|
||||
}
|
||||
|
||||
function showDialog() {
|
||||
app.layout.showDialog('share-dialog');
|
||||
}
|
||||
|
|
@ -113,8 +107,6 @@
|
|||
};
|
||||
|
||||
app.bindDialog('shareRecording', dialogBindings);
|
||||
|
||||
// callFB(fbAppID);
|
||||
};
|
||||
|
||||
this.initialize = initialize;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
<%= image_tag "content/icon_twitter.png", :size => "24x24", :align => "absmiddle", :alt => "", :style => "vertical-align:middle", :class => "share-with-twitter" %>
|
||||
<input type="checkbox" />
|
||||
<%= image_tag "content/icon_google.png", :size => "24x24", :align => "absmiddle", :alt => "", :style => "vertical-align:middle", :class => "share-with-google" %>
|
||||
<div class="error-msg"
|
||||
<div class="error-msg">Please select at least one</div>
|
||||
</div>
|
||||
<div class=" right mr10 mt5"><a class="button-orange dialog-share-button">SHARE</a></div>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -12,4 +12,4 @@ pre-start script
|
|||
chown jam-web:jam-web /var/run/jam-web
|
||||
end script
|
||||
|
||||
exec start-stop-daemon --start --chdir /var/lib/jam-web --exec /var/lib/jam-web/script/package/upstart-run.sh
|
||||
exec start-stop-daemon --start --chdir /var/lib/jam-web --exec /var/lib/jam-web/script/package/upstart-run.sh
|
||||
|
|
|
|||
|
|
@ -12,4 +12,4 @@ pre-start script
|
|||
chown websocket-gateway:websocket-gateway /var/run/websocket-gateway
|
||||
end script
|
||||
|
||||
exec start-stop-daemon --start --chdir /var/lib/websocket-gateway --exec /var/lib/websocket-gateway/script/package/upstart-run.sh
|
||||
exec start-stop-daemon --start --chdir /var/lib/websocket-gateway --exec /var/lib/websocket-gateway/script/package/upstart-run.sh
|
||||
|
|
|
|||
Loading…
Reference in New Issue