Use human-readable way to define user track window params

This commit is contained in:
Dmitriy Simushev 2015-01-14 14:25:51 +00:00
parent 06109eb0c4
commit 090f650ac1
4 changed files with 9 additions and 5 deletions

View File

@ -211,7 +211,7 @@
+ '?thread=' + '?thread='
+ threadId, + threadId,
'ImTracked' + threadId, 'ImTracked' + threadId,
page.get('trackedUserWindowParams') Mibew.Utils.buildWindowParams(page.get('trackedUserWindowParams'))
); );
}, },

View File

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

View File

@ -126,7 +126,7 @@ class PageStyle extends AbstractHandlebarsPoweredStyle implements StyleInterface
'visitor_tag' => 'div', 'visitor_tag' => 'div',
), ),
'tracked' => array( 'tracked' => array(
'user_window_params' => '', 'user_window' => array(),
'visitor_window_params' => '', 'visitor_window_params' => '',
), ),
'ban' => array( 'ban' => array(

View File

@ -14,8 +14,12 @@ users:
visitor_tag: "tr" visitor_tag: "tr"
tracked: tracked:
# window_param use as param string in JavaScript window.open method # These params are used for user's track windows opened via JavaScript's
user_window_params: "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=640,height=480,resizable=1" # window.open method.
user_window:
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" visitor_window_params: "toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1"
ban: ban: