Visual Console Refactor: bugfix
Former-commit-id: 10f2a2199275475b7674364bb5f3d595b65f12c9
This commit is contained in:
parent
e5c17f660b
commit
7f6ec7a501
|
@ -98,7 +98,7 @@ function createVisualConsole(
|
|||
e.data.linkedLayoutId > 0 &&
|
||||
e.data.link != null &&
|
||||
e.data.link.length > 0 &&
|
||||
(e.data.metaconsoleId == null || e.data.metaconsoleId === 0)
|
||||
(e.data.linkedLayoutAgentId == null || e.data.linkedLayoutAgentId === 0)
|
||||
) {
|
||||
// Stop the current link behavior.
|
||||
e.nativeEvent.preventDefault();
|
||||
|
|
|
@ -159,7 +159,7 @@ $visualConsoleItems = VisualConsole::getItemsFromDB(
|
|||
|
||||
// Change the links.
|
||||
if (prevProps && prevProps.id !== newProps.id) {
|
||||
var regex = /(id=|id_visual_console=|id_layout=)\d+(&?)/gi;
|
||||
var regex = /(id=|id_visual_console=|id_layout=|id_visualmap=)\d+(&?)/gi;
|
||||
var replacement = '$1' + newProps.id + '$2';
|
||||
|
||||
// Tab links.
|
||||
|
|
|
@ -261,7 +261,7 @@ $visualConsoleItems = VisualConsole::getItemsFromDB(
|
|||
|
||||
// Change the links.
|
||||
if (prevProps && prevProps.id !== newProps.id) {
|
||||
var regex = /(id=|id_visual_console=|id_layout=)\d+(&?)/gi;
|
||||
var regex = /(id=|id_visual_console=|id_layout=|id_visualmap=)\d+(&?)/gi;
|
||||
var replacement = '$1' + newProps.id + '$2';
|
||||
|
||||
// Tab links.
|
||||
|
|
Loading…
Reference in New Issue