Commit Graph

1019 Commits

Author SHA1 Message Date
Dmitriy Simushev
4b7614caec Completely remove prototype.js from Mibew 2013-03-13 15:38:27 +00:00
Dmitriy Simushev
6c1852e094 Update JavaScript code at install pages 2013-03-13 15:38:27 +00:00
Dmitriy Simushev
4f47218a13 Use playSound JS function instead of sound model 2013-03-13 15:38:27 +00:00
Dmitriy Simushev
a4d12d7b65 Add 'msgjs:' and 'pagejs:' prefixies to template engine 2013-03-13 15:38:27 +00:00
Dmitriy Simushev
33f30bd1c6 Add refresh updater after Chat Module started 2013-03-13 15:38:27 +00:00
Dmitriy Simushev
e7f8779ba8 Fix bug with auto start chat chat window resizer 2013-03-13 15:38:26 +00:00
Dmitriy Simushev
2a3a9dec9d Replace 'tplimage' css class by 'tpl-image' 2013-03-13 15:38:26 +00:00
Dmitriy Simushev
a570ed75d0 Update Chat JavaScript Application
Make prechat survey and leave message parts of the Chat
JavaScript Application
2013-03-13 15:38:26 +00:00
Dmitriy Simushev
9436b486f9 Fix bug in groups saving 2013-03-13 15:38:26 +00:00
Dmitriy Simushev
f72a0187be Build system not strip comments from JS templates anymore 2013-03-13 15:38:26 +00:00
Dmitriy Simushev
ba7eb96e8a Update build system in templates compilation.
Use closure compiler instead of handlebars built in minifier and
recompile all templates.
2013-03-13 15:38:26 +00:00
Dmitriy Simushev
709623dfc5 Fix bug with errorCode in Mibew API execution context 2013-03-13 15:38:26 +00:00
Dmitriy Simushev
8fc9b85bfa Do not support old browsers at all 2013-03-13 15:38:26 +00:00
Dmitriy Simushev
d2805afc9f Remove '.bgbody' css class 2013-03-13 15:38:26 +00:00
Dmitriy Simushev
faac427cc7 Remove layout initialization options in Chat JS app 2013-03-13 15:38:26 +00:00
Dmitriy Simushev
372bae4203 Build Chat JavaScript application options mostly not in template 2013-03-13 15:38:26 +00:00
Dmitriy Simushev
9cde3262d6 Use 'chat.user.name' var instead of 'ct.user.name' in templates 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
fead1b65a1 Use 'chat.thread.token' var instead of 'ct.token' in templates 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
f77021b82b Use 'chat.thread.id' var instead of 'ct.chatThreadId' in templates 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
2c9e65b518 Use 'company.*' vars instead of 'ct.company.*' in tempates 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
0cfd1df846 Flatten $page array before expand templates 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
54d5cbdce8 Create array_flatten_recursive function 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
71a0330a0b Update setup_logo function to return data 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
691ce8986c Update Handlebars.js to v1.0.0-rc.3 and recompile templates 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
d2b3fe7746 Add ability to change handlebars path in build.xml 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
1a79be3970 Update chat page JavaScript configs structure 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
f28e65f0cf Update setup_chatview* functions to return data 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
037135cf71 Fix notice in setup_groups_select function 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
f904f05dc9 Update setup_leavemessage function to return data 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
b8b73e82fe Update setup_survey function to return data 2013-03-13 15:38:25 +00:00
Dmitriy Simushev
23812038d9 Add finalizer to chat module in Chat JavaScript application 2013-03-13 15:38:24 +00:00
Dmitriy Simushev
5d0ac36fa4 Update close control view in Chat JavaScript application
Rename close method to closeThread to not override
Marionette.js View.close method.
2013-03-13 15:38:24 +00:00
Dmitriy Simushev
e4844832f1 Create chat module in Chat JavaScript application 2013-03-13 15:38:24 +00:00
Dmitriy Simushev
8f1db81e83 Update resize.js to work with layout system 2013-03-13 15:38:24 +00:00
Dmitriy Simushev
dc25058a05 Create chat layout in Chat JavaScript application 2013-03-13 15:38:24 +00:00
Dmitriy Simushev
f3ea7d790b Update build.xml
Correctly build JavaScript applications with layouts and regions
2013-03-13 15:38:24 +00:00
Dmitriy Simushev
2f5998843e Move creating instance of Chat JS app to init.js 2013-03-13 15:38:24 +00:00
Dmitriy Simushev
eec1d1a352 Add checkEmail function to Mibew.Utils 2013-03-13 15:38:24 +00:00
Dmitriy Simushev
dee2f2ada7 Add new features to JavaScript Server class
Add ability to remove periodically called functions and to
unregister api functions(that can be called by the server)
2013-03-13 15:38:24 +00:00
Dmitriy Simushev
48cc52cf72 Fix docs for UsersProcessor class 2013-03-13 15:38:24 +00:00
Dmitriy Simushev
aaf3bafb02 Add restartAfter method to JavaScript Server object 2013-03-13 15:38:24 +00:00
Dmitriy Simushev
d24daf52eb Completely rewrite Invite JavaScript application 2013-03-13 15:38:24 +00:00
Dmitriy Simushev
d357e505c9 Update Marionette.js to v1.0.0-rc6 2013-03-13 15:38:23 +00:00
Dmitriy Simushev
d065656ff5 Overcome third-party cookies limitation in safari 5 2013-03-13 15:38:23 +00:00
Dmitriy Simushev
7d0a71da64 Change timers update strategy at operator/users.php 2013-03-13 15:38:23 +00:00
Dmitriy Simushev
3fc81ec53e Rename 'silver' dialog style to 'default' one 2013-03-13 15:38:23 +00:00
Dmitriy Simushev
758c727c45 Create 'usersUpdateVisitorsLoad' and 'usersUpdateVisitorsAlter' events 2013-03-13 15:38:23 +00:00
Dmitriy Simushev
a6006211f2 Update build.xml, make some folders not obligatory for JS apps
Folders 'models', 'model_views', 'collections', 'collection_views'
not obligatory for JavaScript applications any more.
2013-03-13 15:38:23 +00:00
Dmitriy Simushev
d2018e1863 Add network problems detection mechanism to operator/users.php 2013-03-13 15:38:23 +00:00
Dmitriy Simushev
52e5075989 Fix bugs with wrong requests sequence in server.js 2013-03-13 15:38:23 +00:00
Dmitriy Simushev
67e901d3d0 Call updateMessages function not from server but from chat window 2013-03-13 15:38:23 +00:00
Dmitriy Simushev
0054423407 There is no KIND_AVATAR message kind any more 2013-03-13 15:38:23 +00:00
Dmitriy Simushev
bf564e55ef Update styles preview system to work with JavaScript applications 2013-03-13 15:38:23 +00:00
Dmitriy Simushev
9a86a61c99 Add license info to compiled handlebars templates 2013-03-13 15:38:23 +00:00
Dmitriy Simushev
fdd7ff70b1 Bring back license info for built JavaScript applications 2013-03-13 15:38:22 +00:00
Dmitriy Simushev
be0e643c57 Update access permissions
Add '-Indexes' option to .htaccess in root folder and remove
.htaccess from plugins folder
2013-03-13 15:38:22 +00:00
Dmitriy Simushev
d19f6814da Update jQuery to v1.9.1 2013-03-13 15:38:22 +00:00
Dmitriy Simushev
f2bd65cae3 Add forgot popup notification to Users JavaScript application 2013-03-13 15:38:22 +00:00
Dmitriy Simushev
3baf24269f Add ablity to extend operator/users.php page with plugins 2013-03-13 15:38:22 +00:00
Dmitriy Simushev
185be59862 Use various page name for agent and user chat 2013-03-13 15:38:22 +00:00
Dmitriy Simushev
c2f3993fc1 Use 'pageAdd*' events instead of special plugins methods 2013-03-13 15:38:22 +00:00
Dmitriy Simushev
b96c9d0a2c Use md5 hashes as request buffer keys 2013-03-13 15:38:22 +00:00
Dmitriy Simushev
d4e51d3dfd Remove some duplicated code in libs/chat.php 2013-03-13 15:38:22 +00:00
Dmitriy Simushev
e731d9869e Change Exception message in UsersProcessor::checkOperator method 2013-03-13 15:38:22 +00:00
Dmitriy Simushev
606de23f8d Create checkOperator method in ThreadProcessor class 2013-03-13 15:38:22 +00:00
Dmitriy Simushev
219aa4c9b1 Update EventDispatcher class
There is no need to register events any more.
2013-03-13 15:38:14 +00:00
Dmitriy Simushev
62728e608d Remove LAB.js from tird-party libraries 2013-03-13 15:32:48 +00:00
Dmitriy Simushev
503c17352c Create Thread Log JavaScript application 2013-03-13 15:32:48 +00:00
Dmitriy Simushev
b4f99c1c18 Change JavaScript files structure
Move message model and view from chat application
to default application. Also move message template and
'allowTags' Handlebars.js helper to default JavaScript application.
2013-03-13 15:32:48 +00:00
Dmitriy Simushev
526d5ad4ae Move message kinds from message view to message model 2013-03-13 15:32:48 +00:00
Dmitriy Simushev
37de991028 Move remove invitations and visitors functionality to corresponding libs 2013-03-13 15:32:48 +00:00
Dmitriy Simushev
0cdd55cdf8 Create prefix for session vars 2013-03-13 15:32:48 +00:00
Dmitriy Simushev
74ebf724cc Update Underscore.js to v1.4.4 2013-03-13 15:32:48 +00:00
Dmitriy Simushev
30b056108f Fix bug at /operator/blocked.php page 2013-03-13 15:32:48 +00:00
Dmitriy Simushev
630bf80f07 Update Marionette.js to v1.0.0-5 2013-03-13 15:32:48 +00:00
Dmitriy Simushev
6b9f2bd789 Completely rewrite User's JavaScript application 2013-03-13 15:32:48 +00:00
Dmitriy Simushev
d2531a526d Move sound template from styles to default JS application 2013-03-13 15:32:48 +00:00
Dmitriy Simushev
a0161a2c72 Fix bug with empty threads 2013-03-13 15:32:48 +00:00
Dmitriy Simushev
7e70d5b14b Add thread status to Mibew.Models.Thread 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
dd79c9aa21 Create base composite view 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
2a656a58d5 Fix bug with redicection user to a group 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
1ecda26d3d Update Marionette.js to v1.0.0-rc4 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
88244a7b09 Update Handlebars.js to v1.0.rc.2 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
0e260d1aaf Fix bug in handlebars 'formatTime' helper 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
d9d01ed7e0 Forbid access to .tpl .handlebars .ini files in dialogs styles 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
edef539707 Remove unnecessary element from $page array in set_chatview_* functions 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
ad4f4e8d8e Create config files for dialogs and core styles 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
abac28fa46 Change history and refresh controls title 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
1f3e727c17 Create model for Thread 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
e1368a3f87 Change parent model for Mibew.Models.User 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
16162499cf Update Marionette.js to v1.0.0-rc3 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
9b54eea039 Update jQuery to v1.9.0 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
d3be5cc087 Update Underscore.js to v1.4.3 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
71b1b70528 Fix bug with push controls to collection 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
62aa4c4639 Update Backbone.js to v0.9.10 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
0f78be2194 Method getModelType not obligatory for collections models any more 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
e4f172e715 Update operator status in cache in notify_operator_alive function 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
fca7c3c7cd Add some comments to libs/operator.php 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
0808bb5ba6 Split user model to default and chat user 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
a40ec07b59 Update ant usage target 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
1524f0899a Move control.handlebars template to default JavaScript application 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
4a23ae7dc4 Update JavaScript application files structure
Move models views and collection views to various directories
2013-03-13 15:32:46 +00:00
Dmitriy Simushev
6172334090 Fix bug in build file and rebuild JavaScript Applications 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
7f35a7488b Update JavaScript application files structure
Move Control related files from chat app to default app
2013-03-13 15:32:45 +00:00
Dmitriy Simushev
9e01c73cae Create separate requests buffers for user and agent 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
46ce6f2a91 Update MibewAPICoreInteraction
Move it to separate file and rename it to MibewAPIChatInteraction
2013-03-13 15:32:45 +00:00
Dmitriy Simushev
de68b862da Update JavaScript documentation 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
a300b99171 Create base class for Client Side Request Processors 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
0933263cc9 Fix bug with wrong exception class 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
a650a35dd6 Move processorCall method to RequestProcessor class 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
95bc033817 Move saveCallback and loadCallback to RequestProcessor class 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
4f199b2f26 Rename MibewAPIWindowInteraction to MibewAPIChatInteraction 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
2695ef98b6 Move all controls to one cell at user waiting page 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
72e58f0959 Fix JavaScript Unit tests 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
47ccc46359 Completely update messenger build system 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
053837d069 Completely rewrite Chat's JavaScript files 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
1565458c26 Move all JavaScript files from /js/$jsver to /js/compiled 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
f085fbc767 Move request.js and invite.js to /js/compiled 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
35162b8906 Move handlebars.js to /js/libs 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
da50f6f6d9 Move json2.js to /js/libs 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
9587ff9b5b Move LAB.js to /js/libs 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
64d7650e54 Update jQuery to 1.8.3 and move it to /js/libs 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
e45a3e489f Use camel case for plugins' classes names 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
9037f69c09 Fix bug with user wait time 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
092e9c2dcf Fix bug with wrong total thread time 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
2d7676fdf6 Fix the ability to call functions at Chat Window side 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
7c661b11c6 Fix undefined groupname in /operator/update.php 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
498a34ae19 Update ThreadProcessor documentation 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
a310180709 Fix reset predefined answers selectbox index 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
14eed1072d Use JavaScript templates for messages 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
3f39164db1 Fix bug with message about user rename 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
4102ce00f3 Fix bug in Handlebars apply helper. Update docs 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
c1b633843f Fix bug with NULL for message's sender name 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
38668789b9 Change keys of array return by Thread::getMessages 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
f5a970e50f Use LAB.js to load JavaScripts to the chat window 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
4cfac7bbef Split chat.js
JavaScript's chat.js library split into several logical parts:
chatcontroller.js, chatview.js and chatinit.js
2013-03-13 15:32:43 +00:00
Dmitriy Simushev
edb40a06d3 Add LAB.js library 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
727625dfc8 Refactor and format JavaScript chat code 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
72d0c3b0a4 Update webim/js/source/build.xml file
Add pluginmanager.js, handlebars.js, handlebars_hrlpers.js to
the webim/js/source/build.xml configuration file
2013-03-13 15:32:43 +00:00
Dmitriy Simushev
d53e1d8020 Move JavaScript's ChatServer class to separate file 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
83636a02ef Add several Handlebars helpers
Add 'apply', 'formatTime' and 'nl2br' Handlebars helpers.
Also add QUnit tests for 'apply' helper.
2013-03-13 15:32:42 +00:00
Dmitriy Simushev
36c8e6c042 Add Handlebars JavaScript template engine 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
56a50c9df4 Add JavaScript's Thread class usage to chat.js 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
ec5ba068bb Create JavaScript's Thread class 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
5ff3a7656d Extend plugin system
Plugins can add custom CSS and JavaScript files to chat window and
implement JavaScript plugins
2013-03-13 15:32:42 +00:00
Dmitriy Simushev
c61789c2d7 Create JavaScript's PluginManager class 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
53e9400dde Add PluginManager::getAllPlugins() method 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
30cb668a73 Implement new chat system 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
f1224a98ee Fix ability to change avatar 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
1528c610d7 Moved themeMessage method from ThreadProcessor to Thread 2013-03-13 15:32:42 +00:00