From 25e2475100a827985dc3366a1a2107fa78ee6fe6 Mon Sep 17 00:00:00 2001 From: zamentur Date: Fri, 2 Oct 2015 02:40:25 +0200 Subject: [PATCH] [fix] Event handler was not removed on modal confirmation --- src/dist/js/script.min.js | 1 + src/js/app.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/dist/js/script.min.js b/src/dist/js/script.min.js index c8df5cfa..c481317f 100644 --- a/src/dist/js/script.min.js +++ b/src/dist/js/script.min.js @@ -6519,6 +6519,7 @@ var app = Sammy('#main', function (sam) { .click(function(e){ e.preventDefault(); + $('#modal footer button').unbind( "click" ); // Reset & Hide modal box .removeClass('no-title') diff --git a/src/js/app.js b/src/js/app.js index ee1b0d3d..9adb2b10 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -304,6 +304,7 @@ var app = Sammy('#main', function (sam) { .click(function(e){ e.preventDefault(); + $('#modal footer button').unbind( "click" ); // Reset & Hide modal box .removeClass('no-title')