diff --git a/src/mibew/js/source/chat/model_views/controls/send_mail.js b/src/mibew/js/source/chat/model_views/controls/send_mail.js index fb01a547..042b2f5a 100644 --- a/src/mibew/js/source/chat/model_views/controls/send_mail.js +++ b/src/mibew/js/source/chat/model_views/controls/send_mail.js @@ -51,7 +51,7 @@ var link = this.model.get('link'); var page = Mibew.Objects.Models.page; if (link) { - var winParams = this.model.get('windowParams'); + var winParams = Mibew.Utils.buildWindowOptions(this.model.get('windowParams')); var style = page.get('style'); var styleArg = ''; diff --git a/src/mibew/libs/chat.php b/src/mibew/libs/chat.php index d14fb5f8..49cae754 100644 --- a/src/mibew/libs/chat.php +++ b/src/mibew/libs/chat.php @@ -358,7 +358,7 @@ function setup_chatview(Thread $thread) $chat_style = new ChatStyle(ChatStyle::getCurrentStyle()); $style_config = $chat_style->getConfigurations(); $data['chat']['windowsParams']['mail'] - = $style_config['mail']['window_params']; + = $style_config['mail']['window']; // Load core style options $page_style = new PageStyle(PageStyle::getCurrentStyle()); diff --git a/src/mibew/libs/classes/Mibew/Style/ChatStyle.php b/src/mibew/libs/classes/Mibew/Style/ChatStyle.php index a9c67a7e..f02c3c7c 100644 --- a/src/mibew/libs/classes/Mibew/Style/ChatStyle.php +++ b/src/mibew/libs/classes/Mibew/Style/ChatStyle.php @@ -148,7 +148,11 @@ class ChatStyle extends AbstractHandlebarsPoweredStyle implements StyleInterface ), ), 'mail' => array( - 'window_params' => '' + 'window' => array( + 'width' => 640, + 'height' => 480, + 'resizable' => true, + ), ), 'screenshots' => array(), ); diff --git a/src/mibew/styles/chats/default/config.yml b/src/mibew/styles/chats/default/config.yml index 5a6682e7..e308ff2b 100644 --- a/src/mibew/styles/chats/default/config.yml +++ b/src/mibew/styles/chats/default/config.yml @@ -8,8 +8,11 @@ chat: resizable: true mail: - # window_param use as param string in JavaScript window.open method - window_params: "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=603,height=254,resizable=0" + # These params are used for send mail windows opened via JavaScript's window.open. + window: + height: 254 + width: 603 + resizable: false # Screenshots section describe all screenshots shiped with style # Params names should be equals to file names without extension. Pictures