mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Use human-readable way to define user track window params
This commit is contained in:
parent
06109eb0c4
commit
090f650ac1
@ -211,7 +211,7 @@
|
||||
+ '?thread='
|
||||
+ threadId,
|
||||
'ImTracked' + threadId,
|
||||
page.get('trackedUserWindowParams')
|
||||
Mibew.Utils.buildWindowParams(page.get('trackedUserWindowParams'))
|
||||
);
|
||||
},
|
||||
|
||||
|
@ -126,7 +126,7 @@ class UsersController extends AbstractController
|
||||
|
||||
'chatWindowParams' => $chat_style_config['chat']['window'],
|
||||
'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'],
|
||||
'banWindowParams' => $page_style_config['ban']['window'],
|
||||
'inviteWindowParams' => $chat_style_config['chat']['window'],
|
||||
|
@ -126,7 +126,7 @@ class PageStyle extends AbstractHandlebarsPoweredStyle implements StyleInterface
|
||||
'visitor_tag' => 'div',
|
||||
),
|
||||
'tracked' => array(
|
||||
'user_window_params' => '',
|
||||
'user_window' => array(),
|
||||
'visitor_window_params' => '',
|
||||
),
|
||||
'ban' => array(
|
||||
|
@ -14,8 +14,12 @@ users:
|
||||
visitor_tag: "tr"
|
||||
|
||||
tracked:
|
||||
# window_param use as param string in JavaScript window.open method
|
||||
user_window_params: "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=640,height=480,resizable=1"
|
||||
# These params are used for user's track windows opened via JavaScript's
|
||||
# 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"
|
||||
|
||||
ban:
|
||||
|
Loading…
Reference in New Issue
Block a user