Commit eb5ac7c7 by Dányi Bence

webui: fixed browser detection

parent 6d74d31a
......@@ -14,7 +14,7 @@ $(function() {
delete_template_confirm($(this).data('id'), $(this).data('name'));
});
$('.entry .summary').unbind('click').click(toggleDetails);
if (window.navigator.userAgent.indexOf('cloud-gui') != 0) {
if (window.navigator.userAgent.indexOf('cloud-gui') > -1) {
$('.connect-vm-button').click(function(e) {
e.preventDefault(); e.stopPropagation();
get_vm_details($(this).data('id'));
......
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