mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-23 02:21:23 +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'
|
? ban.id + '/edit'
|
||||||
: 'add?thread='+ thread.id),
|
: 'add?thread='+ thread.id),
|
||||||
'ImBan' + ban.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'),
|
'geoWindowParams' => Settings::get('geolinkparams'),
|
||||||
'trackedUserWindowParams' => $page_style_config['tracked']['user_window_params'],
|
'trackedUserWindowParams' => $page_style_config['tracked']['user_window_params'],
|
||||||
'trackedVisitorWindowParams' => $page_style_config['tracked']['visitor_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'],
|
'inviteWindowParams' => $chat_style_config['chat']['window'],
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
|
@ -130,7 +130,7 @@ class PageStyle extends AbstractHandlebarsPoweredStyle implements StyleInterface
|
|||||||
'visitor_window_params' => '',
|
'visitor_window_params' => '',
|
||||||
),
|
),
|
||||||
'ban' => array(
|
'ban' => array(
|
||||||
'window_params' => '',
|
'window' => array(),
|
||||||
),
|
),
|
||||||
'screenshots' => 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"
|
visitor_window_params: "toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1"
|
||||||
|
|
||||||
ban:
|
ban:
|
||||||
# window_param use as param string in JavaScript window.open method
|
# These params are used for history windows opened via JavaScript's
|
||||||
window_params: "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=720,height=480,resizable=1"
|
# window.open method.
|
||||||
|
window:
|
||||||
|
width: 720
|
||||||
|
height: 480
|
||||||
|
resizable: true
|
||||||
|
|
||||||
# Screenshots section describe all screenshots shiped with style
|
# Screenshots section describe all screenshots shiped with style
|
||||||
# Params names should be equals to file names without extension. Pictures
|
# Params names should be equals to file names without extension. Pictures
|
||||||
|
Loading…
Reference in New Issue
Block a user