Repository: openmeetings Updated Branches: refs/heads/master 17cf32083 -> a4b666b76
[OPENMEETINGS-1650] mute sound button is added to the chat Project: http://git-wip-us.apache.org/repos/asf/openmeetings/repo Commit: http://git-wip-us.apache.org/repos/asf/openmeetings/commit/a4b666b7 Tree: http://git-wip-us.apache.org/repos/asf/openmeetings/tree/a4b666b7 Diff: http://git-wip-us.apache.org/repos/asf/openmeetings/diff/a4b666b7 Branch: refs/heads/master Commit: a4b666b7658d391fdb59ce821097edcdf9d95b24 Parents: 17cf320 Author: Maxim Solodovnik <[email protected]> Authored: Sat Jun 17 16:43:00 2017 +0700 Committer: Maxim Solodovnik <[email protected]> Committed: Sat Jun 17 16:43:34 2017 +0700 ---------------------------------------------------------------------- .../web/app/Application.properties.xml | 2 + .../web/app/Application_ar.properties.xml | 2 + .../web/app/Application_bg.properties.xml | 2 + .../web/app/Application_ca.properties.xml | 2 + .../web/app/Application_cs.properties.xml | 2 + .../web/app/Application_da.properties.xml | 2 + .../web/app/Application_de.properties.xml | 2 + .../web/app/Application_el.properties.xml | 2 + .../web/app/Application_es.properties.xml | 2 + .../web/app/Application_fa.properties.xml | 2 + .../web/app/Application_fi.properties.xml | 2 + .../web/app/Application_fr.properties.xml | 2 + .../web/app/Application_gl.properties.xml | 2 + .../web/app/Application_hu.properties.xml | 2 + .../web/app/Application_id.properties.xml | 2 + .../web/app/Application_it.properties.xml | 2 + .../web/app/Application_ja.properties.xml | 2 + .../web/app/Application_ko.properties.xml | 2 + .../web/app/Application_nl.properties.xml | 2 + .../web/app/Application_pl.properties.xml | 2 + .../web/app/Application_pt.properties.xml | 2 + .../web/app/Application_pt_BR.properties.xml | 2 + .../web/app/Application_ru.properties.xml | 2 + .../web/app/Application_sk.properties.xml | 2 + .../web/app/Application_sv.properties.xml | 2 + .../web/app/Application_th.properties.xml | 2 + .../web/app/Application_tr.properties.xml | 2 + .../web/app/Application_uk.properties.xml | 2 + .../web/app/Application_zh_CN.properties.xml | 2 + .../web/app/Application_zh_TW.properties.xml | 2 + .../apache/openmeetings/web/user/chat/Chat.html | 5 +- .../apache/openmeetings/web/user/chat/chat.js | 49 +++++++++++++++---- openmeetings-web/src/main/webapp/css/chat.css | 12 +++++ .../src/main/webapp/css/images/sound.png | Bin 0 -> 1855 bytes .../src/main/webapp/css/images/sound_mute.png | Bin 0 -> 2080 bytes 35 files changed, 115 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application.properties.xml index 916bf5f..5e90c88 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ar.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ar.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ar.properties.xml index deaf8a0..e45bc65 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ar.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ar.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_bg.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_bg.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_bg.properties.xml index c3b41c1..190e97d 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_bg.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_bg.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ca.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ca.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ca.properties.xml index ebc2432..a7f3225 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ca.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ca.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_cs.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_cs.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_cs.properties.xml index 10b3b82..225031a 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_cs.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_cs.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_da.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_da.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_da.properties.xml index e3bcbec..503bfd6 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_da.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_da.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_de.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_de.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_de.properties.xml index 2cd4fd5..694948e 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_de.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_de.properties.xml @@ -1925,4 +1925,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_el.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_el.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_el.properties.xml index 2f8dea1..1e63342 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_el.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_el.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_es.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_es.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_es.properties.xml index e195e2f..8407e83 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_es.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_es.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fa.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fa.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fa.properties.xml index 1c6d5b5..cbbe9a3 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fa.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fa.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fi.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fi.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fi.properties.xml index 1f3b8bf..910f9b2 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fi.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fi.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fr.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fr.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fr.properties.xml index 8bb53b2..6186722 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fr.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_fr.properties.xml @@ -1912,4 +1912,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_gl.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_gl.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_gl.properties.xml index 76b9df0..1e39b42 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_gl.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_gl.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_hu.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_hu.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_hu.properties.xml index 694ab25..4689440 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_hu.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_hu.properties.xml @@ -1908,4 +1908,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_id.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_id.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_id.properties.xml index d2cb807..acf4f29 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_id.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_id.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_it.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_it.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_it.properties.xml index 9528111..9f08704 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_it.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_it.properties.xml @@ -1922,4 +1922,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ja.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ja.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ja.properties.xml index 082a4d2..4192384 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ja.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ja.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ko.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ko.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ko.properties.xml index 0244164..af9e81e 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ko.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ko.properties.xml @@ -1922,4 +1922,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_nl.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_nl.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_nl.properties.xml index f5a8ac1..642c9a0 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_nl.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_nl.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pl.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pl.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pl.properties.xml index fac249e..686a19c 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pl.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pl.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pt.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pt.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pt.properties.xml index 4e18087..efe23d0 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pt.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pt.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pt_BR.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pt_BR.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pt_BR.properties.xml index 185f570..abf5da3 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pt_BR.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_pt_BR.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ru.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ru.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ru.properties.xml index 19d4092..209c1fb 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ru.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_ru.properties.xml @@ -1921,4 +1921,6 @@ <entry key="bad.password.digit"><![CDATA['СлабÑй' паÑолÑ: обÑзаÑелена по кÑайней меÑе одна ÑиÑÑа]]></entry> <entry key="bad.password.special"><![CDATA['СлабÑй' паÑолÑ: обÑзаÑелен по кÑайней меÑе один Ñимвол из '!@#$%^&*][']]></entry> <entry key="bad.password.stop"><![CDATA['СлабÑй' паÑолÑ: паÑÐ¾Ð»Ñ Ð½Ðµ должен ÑодеÑжаÑÑ ÑаÑÑей полÑзоваÑелÑÑкого email или логина]]></entry> + <entry key="sound.enable">ÐклÑÑиÑÑ Ð·Ð²Ñк</entry> + <entry key="sound.mute">ÐÑклÑÑиÑÑ Ð·Ð²Ñк</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_sk.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_sk.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_sk.properties.xml index 33af424..d9c648c 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_sk.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_sk.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_sv.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_sv.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_sv.properties.xml index a3611ae..b4f2dfc 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_sv.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_sv.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_th.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_th.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_th.properties.xml index 7713efd..8de7a86 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_th.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_th.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_tr.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_tr.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_tr.properties.xml index 09396dd..e7836eb 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_tr.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_tr.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_uk.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_uk.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_uk.properties.xml index a884f2f..27352c4 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_uk.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_uk.properties.xml @@ -1922,4 +1922,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_zh_CN.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_zh_CN.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_zh_CN.properties.xml index b0cc276..73160a2 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_zh_CN.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_zh_CN.properties.xml @@ -1910,4 +1910,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_zh_TW.properties.xml ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_zh_TW.properties.xml b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_zh_TW.properties.xml index 48d2581..682e98e 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_zh_TW.properties.xml +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/app/Application_zh_TW.properties.xml @@ -1920,4 +1920,6 @@ <entry key="bad.password.digit"><![CDATA['Weak' password: at least 1 digit is required]]></entry> <entry key="bad.password.special"><![CDATA['Weak' password: at least 1 special symbol '!@#$%^&*][' is required]]></entry> <entry key="bad.password.stop"><![CDATA['Weak' password: it shouldn't contain part of the user's email address or username]]></entry> + <entry key="sound.enable">Enable sound</entry> + <entry key="sound.mute">Mute sound</entry> </properties> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/Chat.html ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/Chat.html b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/Chat.html index ff89822..76024ac 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/Chat.html +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/Chat.html @@ -28,9 +28,12 @@ </div> <form wicket:id="sendForm"> <div style="display: inline-block;" wicket:id="toolbarContainer"></div> - <div style="display: inline-block; float: right; margin-right: 10px;"> + <div class="clickable chat-btn ui-state-default ui-corner-all"> <div class="formCancelButton" wicket:id="ajax-cancel-button" wicket:message="title:442"></div> </div> + <div class="clickable chat-btn ui-state-default ui-corner-all"> + <div class="audio om-icon" wicket:message="data-sound-enabled:sound.mute,data-sound-muted:sound.enable"> </div> + </div> <table style="width: 100%"> <tr> <td><div id="chatMessage" wicket:id="chatMessage"></div></td> http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/chat.js ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/chat.js b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/chat.js index cb040b2..626aae8 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/chat.js +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/chat.js @@ -33,7 +33,7 @@ var Chat = function() { , emoticon = new CSSEmoticon() , typingTimer , doneTypingInterval = 5000 //time in ms, 5 second for example - , audio + , audio, s ; try { audio = new Audio('./public/chat_message.mp3'); @@ -43,6 +43,24 @@ var Chat = function() { play: function() {} }; } + function _load() { + s = {}; + try { + s = JSON.parse(localStorage.getItem('openmeetings')) || s; + } catch (e) {} + if (!s.chat) { + s.chat = {}; + } + } + function _save() { + var _s = JSON.stringify(s); + localStorage.setItem('openmeetings', _s); + } + function _updateBtn(a) { + var muted = s.chat.muted === true; + a.removeClass('sound' + (muted ? '' : '-mute')).addClass('sound' + (muted ? '-mute' : '')) + .attr('title', a.data(muted ? 'sound-enabled' : 'sound-muted')); + } function doneTyping () { typingTimer = null; chatActivity('typing_stop', $('.room.box').data('room-id')); @@ -67,6 +85,15 @@ var Chat = function() { row = $('<tr></tr>'); } } + _load(); + var a = $('#chat .audio'); + _updateBtn(a); + $('#chat .chat-btn').hover(function(){ $(this).addClass('ui-state-hover') }, function(){ $(this).removeClass('ui-state-hover') }); + a.click(function() { + s.chat.muted = !s.chat.muted; + _updateBtn(a); + _save(); + }); } function isClosed() { return $('#chatPanel').height() < 24; @@ -146,16 +173,18 @@ var Chat = function() { if ($('#chat').length > 0 && m && m.type == "chat") { if (isClosed()) { $('#chatPopup .control.block').addClass('ui-state-highlight'); - var playPromise = audio.play(); + if (s.chat.muted !== true) { + var playPromise = audio.play(); - // In browsers that donât yet support this functionality, - // playPromise wonât be defined. - if (playPromise !== undefined) { - playPromise.then(function() { - // Automatic playback started! - }).catch(function(error) { - // Automatic playback failed. - }); + // In browsers that donât yet support this functionality, + // playPromise wonât be defined. + if (playPromise !== undefined) { + playPromise.then(function() { + // Automatic playback started! + }).catch(function(error) { + // Automatic playback failed. + }); + } } } var msg, cm; http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/webapp/css/chat.css ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/webapp/css/chat.css b/openmeetings-web/src/main/webapp/css/chat.css index a837b31..38923ce 100644 --- a/openmeetings-web/src/main/webapp/css/chat.css +++ b/openmeetings-web/src/main/webapp/css/chat.css @@ -80,3 +80,15 @@ max-height: 70px; max-width: 500px; } +.sound.om-icon { + background-image: url(images/sound.png); +} +.sound-mute.om-icon { + background-image: url(images/sound_mute.png); +} +#chat .chat-btn { + display: inline-block; + float: right; + margin-right: 10px; + padding: 4px; +} http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/webapp/css/images/sound.png ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/webapp/css/images/sound.png b/openmeetings-web/src/main/webapp/css/images/sound.png new file mode 100644 index 0000000..8c2baf0 Binary files /dev/null and b/openmeetings-web/src/main/webapp/css/images/sound.png differ http://git-wip-us.apache.org/repos/asf/openmeetings/blob/a4b666b7/openmeetings-web/src/main/webapp/css/images/sound_mute.png ---------------------------------------------------------------------- diff --git a/openmeetings-web/src/main/webapp/css/images/sound_mute.png b/openmeetings-web/src/main/webapp/css/images/sound_mute.png new file mode 100644 index 0000000..c683bc6 Binary files /dev/null and b/openmeetings-web/src/main/webapp/css/images/sound_mute.png differ
