Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
e4c8c2fc
提交
e4c8c2fc
authored
9月 26, 2016
作者:
Waldyr de Souza
提交者:
Anthony Minessale
9月 29, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-9552 add to verto communicator toggle deaf status button
上级
5e413fe2
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
32 行增加
和
1 行删除
+32
-1
jquery.verto.js
html5/verto/js/src/jquery.verto.js
+8
-0
locale-en.json
html5/verto/verto_communicator/src/locales/locale-en.json
+3
-0
locale-pt.json
html5/verto/verto_communicator/src/locales/locale-pt.json
+3
-0
chat.html
html5/verto/verto_communicator/src/partials/chat.html
+6
-1
ChatController.js
...icator/src/vertoControllers/controllers/ChatController.js
+12
-0
没有找到文件。
html5/verto/js/src/jquery.verto.js
浏览文件 @
e4c8c2fc
...
...
@@ -1298,6 +1298,14 @@
this
.
modCommand
(
"stop"
,
null
,
"all"
);
};
$
.
verto
.
conf
.
prototype
.
deaf
=
function
(
memberID
)
{
this
.
modCommand
(
"deaf"
,
parseInt
(
memberID
));
};
$
.
verto
.
conf
.
prototype
.
undeaf
=
function
(
memberID
)
{
this
.
modCommand
(
"undeaf"
,
parseInt
(
memberID
));
};
$
.
verto
.
conf
.
prototype
.
record
=
function
(
file
)
{
this
.
modCommand
(
"recording"
,
null
,
[
"start"
,
file
]);
};
...
...
html5/verto/verto_communicator/src/locales/locale-en.json
浏览文件 @
e4c8c2fc
...
...
@@ -144,10 +144,13 @@
"CHAT_TITLE_VOL_PLUS"
:
"Volume +"
,
"CHAT_TITLE_GAIN_MINUS"
:
"Gain -"
,
"CHAT_TITLE_GAIN_PLUS"
:
"Gain +"
,
"CHAT_TITLE_DEAF_UNDEAF"
:
"Deaf/Undeaf"
,
"CHAT_VOL_MINUS"
:
"Vol -"
,
"CHAT_VOL_PLUS"
:
"Vol +"
,
"CHAT_GAIN_MINUS"
:
"Gain -"
,
"CHAT_GAIN_PLUS"
:
"Gain +"
,
"CHAT_DEAF"
:
"Deaf"
,
"CHAT_UNDEAF"
:
"Undeaf"
,
"LANGUAGE"
:
"Language:"
,
"BROWSER_LANGUAGE"
:
"Browser Language"
,
"FACTORY_RESET_SETTINGS"
:
"Factory Reset Settings"
,
...
...
html5/verto/verto_communicator/src/locales/locale-pt.json
浏览文件 @
e4c8c2fc
...
...
@@ -144,10 +144,13 @@
"CHAT_TITLE_VOL_PLUS"
:
"Volume +"
,
"CHAT_TITLE_GAIN_MINUS"
:
"Ganho -"
,
"CHAT_TITLE_GAIN_PLUS"
:
"Ganho +"
,
"CHAT_TITLE_DEAF_UNDEAF"
:
"Ligar/Desligar Áudio"
,
"CHAT_VOL_MINUS"
:
"Vol -"
,
"CHAT_VOL_PLUS"
:
"Vol +"
,
"CHAT_GAIN_MINUS"
:
"Ganho -"
,
"CHAT_GAIN_PLUS"
:
"Ganho +"
,
"CHAT_DEAF"
:
"Ligar Áudio"
,
"CHAT_UNDEAF"
:
"Desligar Áudio"
,
"FACTORY_RESET_SETTINGS"
:
"Redefinir configurações"
,
"AUTOGAIN_CONTROL"
:
"Controle de Ganho Automático (AGC)"
}
html5/verto/verto_communicator/src/partials/chat.html
浏览文件 @
e4c8c2fc
...
...
@@ -55,7 +55,7 @@
<div
class=
"admin-controls"
ng-if=
"verto.data.confRole == 'moderator'"
ng-show=
"$index == $parent.openId"
>
<div>
<div
class=
"col-md-
6
ctrl-section"
>
<div
class=
"col-md-
12
ctrl-section"
>
<h3>
{{ 'CHAT_GENERAL' | translate }}
</h3>
<div
class=
"group btn-group-justified"
>
<a
href=
""
class=
"btn btn-xs"
ng-click=
"confKick(member.id)"
title=
"{{ 'CHAT_TITLE_KICK' | translate }}"
>
...
...
@@ -70,6 +70,11 @@
<i
class=
"mdi-fw mdi-communication-call-made"
></i>
<span
style=
"margin-left: -9px"
>
{{ 'CHAT_TRANSFER' | translate }}
</span>
</a>
<a
href=
""
class=
"btn btn-xs"
ng-click=
"confToggleDeaf(member)"
title=
"{{ 'CHAT_TITLE_DEAF_UNDEAF' | translate }}"
>
<i
class=
"mdi-fw"
ng-class=
"member.status.audio.deaf ? 'mdi-content-clear' : 'mdi-av-hearing'"
></i>
{{ member.status.audio.deaf ? 'CHAT_UNDEAF' : 'CHAT_DEAF' | translate }}
</a>
</div>
</div>
...
...
html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js
浏览文件 @
e4c8c2fc
...
...
@@ -333,6 +333,18 @@
});
};
$scope
.
confToggleDeaf
=
function
(
member
)
{
if
(
verto
.
data
.
confRole
==
'moderator'
)
{
console
.
log
(
'$scope.confToggleDeaf'
);
if
(
member
.
status
.
audio
.
deaf
)
{
verto
.
data
.
conf
.
undeaf
(
member
.
id
);
}
else
{
verto
.
data
.
conf
.
deaf
(
member
.
id
);
}
}
};
function
shortPrompt
(
text
,
cb
)
{
prompt
({
title
:
text
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论