From 5e9c57758b0d326fc5bafadd3488ddd9013d81b6 Mon Sep 17 00:00:00 2001 From: Mark Friedrich Date: Sat, 30 Jun 2018 14:43:12 +0200 Subject: [PATCH] - fixed broken buttons in "xEditable" form fields (e.g. map description, signature table) --- js/app/mappage.js | 3 +++ js/app/util.js | 19 +++++++++++++++++-- public/js/v1.3.6/app/mappage.js | 3 +++ public/js/v1.3.6/app/util.js | 19 +++++++++++++++++-- 4 files changed, 40 insertions(+), 4 deletions(-) diff --git a/js/app/mappage.js b/js/app/mappage.js index a72015fb..8e73ff45 100644 --- a/js/app/mappage.js +++ b/js/app/mappage.js @@ -35,6 +35,9 @@ define([ // set default select2 config Util.initDefaultSelect2Config(); + // set default xEditable config + Util.initDefaultEditableConfig(); + // load page // load info (maintenance) info panel (if scheduled) $('body').loadPageStructure().setGlobalShortcuts(); diff --git a/js/app/util.js b/js/app/util.js index 312c0627..1f6aa1f9 100644 --- a/js/app/util.js +++ b/js/app/util.js @@ -963,7 +963,7 @@ define([ }; /** - * set default configuration for "Bootbox" + * set default configuration for "Bootbox" */ let initDefaultBootboxConfig = () => { bootbox.setDefaults({ @@ -972,7 +972,7 @@ define([ }; /** - * set default configuration for "Select2" + * set default configuration for "Select2" */ let initDefaultSelect2Config = () => { $.fn.select2.defaults.set('theme', 'pathfinder'); @@ -1044,6 +1044,20 @@ define([ }); }; + /** + * set default configuration for "xEditable" + */ + let initDefaultEditableConfig = () => { + // use fontAwesome buttons + $.fn.editableform.buttons = + ''+ + ''; + }; + /** * get the current main trigger delay for the main trigger functions * optional in/decrease the delay @@ -2577,6 +2591,7 @@ define([ initPrototypes: initPrototypes, initDefaultBootboxConfig: initDefaultBootboxConfig, initDefaultSelect2Config: initDefaultSelect2Config, + initDefaultEditableConfig: initDefaultEditableConfig, getCurrentTriggerDelay: getCurrentTriggerDelay, getServerTime: getServerTime, convertTimestampToServerTime: convertTimestampToServerTime, diff --git a/public/js/v1.3.6/app/mappage.js b/public/js/v1.3.6/app/mappage.js index a72015fb..8e73ff45 100644 --- a/public/js/v1.3.6/app/mappage.js +++ b/public/js/v1.3.6/app/mappage.js @@ -35,6 +35,9 @@ define([ // set default select2 config Util.initDefaultSelect2Config(); + // set default xEditable config + Util.initDefaultEditableConfig(); + // load page // load info (maintenance) info panel (if scheduled) $('body').loadPageStructure().setGlobalShortcuts(); diff --git a/public/js/v1.3.6/app/util.js b/public/js/v1.3.6/app/util.js index 312c0627..1f6aa1f9 100644 --- a/public/js/v1.3.6/app/util.js +++ b/public/js/v1.3.6/app/util.js @@ -963,7 +963,7 @@ define([ }; /** - * set default configuration for "Bootbox" + * set default configuration for "Bootbox" */ let initDefaultBootboxConfig = () => { bootbox.setDefaults({ @@ -972,7 +972,7 @@ define([ }; /** - * set default configuration for "Select2" + * set default configuration for "Select2" */ let initDefaultSelect2Config = () => { $.fn.select2.defaults.set('theme', 'pathfinder'); @@ -1044,6 +1044,20 @@ define([ }); }; + /** + * set default configuration for "xEditable" + */ + let initDefaultEditableConfig = () => { + // use fontAwesome buttons + $.fn.editableform.buttons = + ''+ + ''; + }; + /** * get the current main trigger delay for the main trigger functions * optional in/decrease the delay @@ -2577,6 +2591,7 @@ define([ initPrototypes: initPrototypes, initDefaultBootboxConfig: initDefaultBootboxConfig, initDefaultSelect2Config: initDefaultSelect2Config, + initDefaultEditableConfig: initDefaultEditableConfig, getCurrentTriggerDelay: getCurrentTriggerDelay, getServerTime: getServerTime, convertTimestampToServerTime: convertTimestampToServerTime,