mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 08:14:42 +03:00
Use human-readable way to define ban window params
This commit is contained in:
parent
f6938b2f13
commit
06109eb0c4
@ -232,7 +232,7 @@
|
||||
? ban.id + '/edit'
|
||||
: 'add?thread='+ thread.id),
|
||||
'ImBan' + ban.id,
|
||||
page.get('banWindowParams')
|
||||
Mibew.Utils.buildWindowParams(page.get('banWindowParams'))
|
||||
);
|
||||
},
|
||||
|
||||
|
@ -128,7 +128,7 @@ class UsersController extends AbstractController
|
||||
'geoWindowParams' => Settings::get('geolinkparams'),
|
||||
'trackedUserWindowParams' => $page_style_config['tracked']['user_window_params'],
|
||||
'trackedVisitorWindowParams' => $page_style_config['tracked']['visitor_window_params'],
|
||||
'banWindowParams' => $page_style_config['ban']['window_params'],
|
||||
'banWindowParams' => $page_style_config['ban']['window'],
|
||||
'inviteWindowParams' => $chat_style_config['chat']['window'],
|
||||
),
|
||||
))
|
||||
|
@ -130,7 +130,7 @@ class PageStyle extends AbstractHandlebarsPoweredStyle implements StyleInterface
|
||||
'visitor_window_params' => '',
|
||||
),
|
||||
'ban' => array(
|
||||
'window_params' => '',
|
||||
'window' => array(),
|
||||
),
|
||||
'screenshots' => array(),
|
||||
);
|
||||
|
@ -19,8 +19,12 @@ tracked:
|
||||
visitor_window_params: "toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1"
|
||||
|
||||
ban:
|
||||
# window_param use as param string in JavaScript window.open method
|
||||
window_params: "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=720,height=480,resizable=1"
|
||||
# These params are used for history windows opened via JavaScript's
|
||||
# window.open method.
|
||||
window:
|
||||
width: 720
|
||||
height: 480
|
||||
resizable: true
|
||||
|
||||
# Screenshots section describe all screenshots shiped with style
|
||||
# Params names should be equals to file names without extension. Pictures
|
||||
|
Loading…
Reference in New Issue
Block a user