Commit e7e81a1c by Csók Tamás

function layout modifications

parent dd735e00
...@@ -382,6 +382,13 @@ $(function () { ...@@ -382,6 +382,13 @@ $(function () {
$('.notification-messages').load("/dashboard/notifications/"); $('.notification-messages').load("/dashboard/notifications/");
$('#notification-button a span[class*="badge-pulse"]').remove(); $('#notification-button a span[class*="badge-pulse"]').remove();
}); });
/* on the client confirmation button fire the clientInstalledAction */
$(document).on("click", "#client-check-button", function(event) {
var connectUri = $('#connect-uri').val();
clientInstalledAction(connectUri);
return false;
});
}); });
function generateVmHTML(pk, name, host, icon, _status, fav, is_last) { function generateVmHTML(pk, name, host, icon, _status, fav, is_last) {
...@@ -584,23 +591,16 @@ function addModalConfirmation(func, data) { ...@@ -584,23 +591,16 @@ function addModalConfirmation(func, data) {
} }
function addOnClickToInput(id, func, param) { function addOnClickToInput(id, func, param) {
$('input,select').not('textarea').keypress(function(event) {if (event.keyCode == 13) {event.preventDefault();}}) $('input,select').not('textarea').keypress(function(event) {if (event.keyCode == 13) {event.preventDefault();}})
$('#' + id).click(function(){func(param); return false;}) $('#' + id).click(function(){func(param); return false;})
} }
function clientInstalledAction(location) { function clientInstalledAction(location) {
setCookie('downloaded_client', true, 365 * 24 * 60 * 60); setCookie('downloaded_client', true, 365 * 24 * 60 * 60);
window.location.href = location; window.location.href = location;
$('#confirmation-modal').modal("hide"); $('#confirmation-modal').modal("hide");
} }
$(function() {
$(document).on("click", "#client-check-button", function(event) {
var connectUri = $('#connect-uri').val();
clientInstalledAction(connectUri);
return false;
});
});
// for AJAX calls // for AJAX calls
/** /**
* Getter for user cookies * Getter for user cookies
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment