mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
fixing the annoying duplicate key on link label to maps
This commit is contained in:
parent
cfa669fe2e
commit
ba90addad2
@ -1,5 +1,8 @@
|
|||||||
/*--------------------------------------------- Common actions --------------------------------------------------**/
|
/*--------------------------------------------- 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) {
|
$.fn.dataTableExt.oApi.fnReloadAjax = function (oSettings, sNewSource, fnCallback, bStandingRedraw) {
|
||||||
if (typeof sNewSource != 'undefined' && sNewSource != null) {
|
if (typeof sNewSource != 'undefined' && sNewSource != null) {
|
||||||
oSettings.sAjaxSource = sNewSource;
|
oSettings.sAjaxSource = sNewSource;
|
||||||
@ -93,7 +96,7 @@ jQuery.fn.dialogForm = function (options) {
|
|||||||
|
|
||||||
// Success actions ...
|
// Success actions ...
|
||||||
var onSuccess = function (jqXHR, textStatus, data) {
|
var onSuccess = function (jqXHR, textStatus, data) {
|
||||||
var resourceId = jqXHR.getResponseHeader("ResourceId");
|
var resourceId = jqXHR ? jqXHR.getResponseHeader("ResourceId") : undefined;
|
||||||
if (options.redirect) {
|
if (options.redirect) {
|
||||||
var redirectUrl = options.redirect;
|
var redirectUrl = options.redirect;
|
||||||
redirectUrl = redirectUrl.replace("{header.resourceId}", resourceId);
|
redirectUrl = redirectUrl.replace("{header.resourceId}", resourceId);
|
||||||
@ -292,7 +295,7 @@ $(function () {
|
|||||||
|
|
||||||
if (labels) {
|
if (labels) {
|
||||||
prepareLabelList(labels);
|
prepareLabelList(labels);
|
||||||
$(document).one('click', '.chooseLabel',
|
$('.chooseLabel').one('click' ,
|
||||||
function () {
|
function () {
|
||||||
var mapIds = $('#mindmapListTable').dataTableExt.getSelectedMapsIds();
|
var mapIds = $('#mindmapListTable').dataTableExt.getSelectedMapsIds();
|
||||||
if (mapIds.length > 0) {
|
if (mapIds.length > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user