mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 13:24:41 +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='
|
+ '?thread='
|
||||||
+ threadId,
|
+ threadId,
|
||||||
'ImTracked' + 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'],
|
'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'],
|
||||||
|
@ -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(
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user