From ba90addad207d26131fd8b798fdca48d37bce2b6 Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Thu, 6 Feb 2014 00:44:36 -0300 Subject: [PATCH] fixing the annoying duplicate key on link label to maps --- wise-webapp/src/main/webapp/js/mindmapList.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wise-webapp/src/main/webapp/js/mindmapList.js b/wise-webapp/src/main/webapp/js/mindmapList.js index c82b1e28..bda85447 100644 --- a/wise-webapp/src/main/webapp/js/mindmapList.js +++ b/wise-webapp/src/main/webapp/js/mindmapList.js @@ -1,5 +1,8 @@ /*--------------------------------------------- Common actions --------------------------------------------------**/ - +// Hack for bootstrap issue with IE10. https://github.com/twbs/bootstrap/issues/3672 +/*if ($.browser.msie && $.browser.version > 9) { + $('.modal').removeClass('fade'); +}*/ $.fn.dataTableExt.oApi.fnReloadAjax = function (oSettings, sNewSource, fnCallback, bStandingRedraw) { if (typeof sNewSource != 'undefined' && sNewSource != null) { oSettings.sAjaxSource = sNewSource; @@ -93,7 +96,7 @@ jQuery.fn.dialogForm = function (options) { // Success actions ... var onSuccess = function (jqXHR, textStatus, data) { - var resourceId = jqXHR.getResponseHeader("ResourceId"); + var resourceId = jqXHR ? jqXHR.getResponseHeader("ResourceId") : undefined; if (options.redirect) { var redirectUrl = options.redirect; redirectUrl = redirectUrl.replace("{header.resourceId}", resourceId); @@ -292,7 +295,7 @@ $(function () { if (labels) { prepareLabelList(labels); - $(document).one('click', '.chooseLabel', + $('.chooseLabel').one('click' , function () { var mapIds = $('#mindmapListTable').dataTableExt.getSelectedMapsIds(); if (mapIds.length > 0) {