From 0b386863a7b691873708b16ead3b9ffae1f6d8bc Mon Sep 17 00:00:00 2001 From: derula Date: Sun, 17 Sep 2017 22:09:09 +0200 Subject: [PATCH] Fixed login button. --- public/assets/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/assets/script.js b/public/assets/script.js index d8949cd..71a7153 100644 --- a/public/assets/script.js +++ b/public/assets/script.js @@ -80,7 +80,7 @@ $(() => { }; const Close = function() { $(this).dialog('close'); }; const OK = Close; - $('#edit').button({label: 'Change profile'}).click((e) => { + $('#edit').not('.link').button({label: 'Change profile'}).click((e) => { e.preventDefault(); ($('main').children().is('form') ? unwrap : wrap)($(e.target)); });