Use human-readable way to define visitor track window params

This commit is contained in:
Dmitriy Simushev 2015-01-14 14:37:30 +00:00
parent 090f650ac1
commit 3f6a95f7a6
4 changed files with 10 additions and 4 deletions

View File

@ -101,7 +101,7 @@
+ '?visitor='
+ visitorId,
'ImTracked' + visitorId,
page.get('trackedVisitorWindowParams')
Mibew.Utils.buildWindowParams(page.get('trackedVisitorWindowParams'))
);
},

View File

@ -127,7 +127,7 @@ class UsersController extends AbstractController
'chatWindowParams' => $chat_style_config['chat']['window'],
'geoWindowParams' => Settings::get('geolinkparams'),
'trackedUserWindowParams' => $page_style_config['tracked']['user_window'],
'trackedVisitorWindowParams' => $page_style_config['tracked']['visitor_window_params'],
'trackedVisitorWindowParams' => $page_style_config['tracked']['visitor_window'],
'banWindowParams' => $page_style_config['ban']['window'],
'inviteWindowParams' => $chat_style_config['chat']['window'],
),

View File

@ -127,7 +127,7 @@ class PageStyle extends AbstractHandlebarsPoweredStyle implements StyleInterface
),
'tracked' => array(
'user_window' => array(),
'visitor_window_params' => '',
'visitor_window' => array(),
),
'ban' => array(
'window' => array(),

View File

@ -20,7 +20,13 @@ tracked:
width: 640
height: 480
resizable: true
visitor_window_params: "toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1"
# These params are used for visitor's track windows opened via JavaScript's
# window.open method.
visitor_window:
width: 640
height: 480
scrollbars: true
resizable: true
ban:
# These params are used for history windows opened via JavaScript's