js
2016-07-22 11:00
447 查看
//radio_btn的定义 //***实时视频开关 // 开启实时视频 var realTimeVideoOpenRadio = new Ext.form.Radio({ boxLabel: '开启查看实时视频', inputValue: '2', listeners: { 'check': function () { if (realTimeVideoOpenRadio.getValue()) { realTimeVideoCloseRadio.setValue(false); realTimeVideoOpenRadio.setValue(true); } } } }); //关闭实时视频 var realTimeVideoCloseRadio = new Ext.form.Radio({ boxLabel: '关闭查看实时视频', inputValue: '4', listeners: { 'check': function () { if (realTimeVideoCloseRadio.getValue()) { realTimeVideoOpenRadio.setValue(false); realTimeVideoCloseRadio.setValue(true); } } } }); //***历史视频开关 // 开启历史视频 var historyVideoOpenRadio = new Ext.form.Radio({ boxLabel: '开启查看历史视频', inputValue: '8', listeners: { 'check': function () { if (historyVideoOpenRadio.getValue()) { historyVideoCloseRadio.setValue(false); historyVideoOpenRadio.setValue(true); } } } }); //关闭历史视频 var historyVideoCloseRadio = new Ext.form.Radio({ boxLabel: '关闭查看历史视频', inputValue: '16', listeners: { 'check': function () { if (historyVideoCloseRadio.getValue()) { historyVideoOpenRadio.setValue(false); historyVideoCloseRadio.setValue(true); } } } }); //***超流量实时视频开关 // 开启超流量实时视频 var exceedRealTimeVideoOpenRadio = new Ext.form.Radio({ boxLabel: '允许超流量查看实时视频', inputValue: '32', listeners: { 'check': function () { if (exceedRealTimeVideoOpenRadio.getValue()) { exceedRealTimeVideoCloseRadio.setValue(false); exceedRealTimeVideoOpenRadio.setValue(true); } } } }); //关闭超流量实时视频 var exceedRealTimeVideoCloseRadio = new Ext.form.Radio({ boxLabel: '禁止超流量查看实时视频', inputValue: '64', listeners: { 'check': function () { if (exceedRealTimeVideoCloseRadio.getValue()) { exceedRealTimeVideoOpenRadio.setValue(false); exceedRealTimeVideoCloseRadio.setValue(true); } } } }); //***超流量历史视频开关 // 开启超流量历史视频 var exceedHistoryVideoOpenRadio = new Ext.form.Radio({ boxLabel: '允许超流量查看历史视频', inputValue: '128', listeners: { 'check': function () { if (exceedHistoryVideoOpenRadio.getValue()) { exceedHistoryVideoCloseRadio.setValue(false); exceedHistoryVideoOpenRadio.setValue(true); } } } }); //关闭超流量历史视频 var exceedHistoryVideoCloseRadio = new Ext.form.Radio({ boxLabel: '禁止超流量查看历史视频', inputValue: '256', listeners: { 'check': function () { if (exceedHistoryVideoCloseRadio.getValue()) { exceedHistoryVideoOpenRadio.setValue(false); exceedHistoryVideoCloseRadio.setValue(true); } } } });
相关文章推荐
- eclipse/intellij idea 远程调试hadoop 2.6.0
- IntelliJ IDEA & Android Studio的调整优化
- Intellij IDEA控制台乱码解决方法
- idea中切换svn地址不起作用
- 使用Ant构建SSH项目(Intellij IDEA版)
- idea常用设置
- Intellij idea使用Git@Osc发布项目(干货)
- IntelliJ IDEA使用Application Server开发普通Java Web项目
- IntelliJ IDEA使用Maven快速开发Java Web项目,并添加JFinal依赖
- 在线安装 IntelliJ IDEA的 golang 插件
- 工具使用【IDEA】---plugins篇
- 工具使用【IDEA】---使用技巧
- Intellij IDEA整理
- 如何在IDEA2017创建Maven的Web工程
- IDEA 配置 及技巧
- IDEA如何配置maven自动下载源码和文档
- 使用IDEA 新建maven web项目
- IntelliJ IDEA 中 右键新建时,选项没有Java class的解决方法和具体解释
- IDEA web项目部署运行Tomcat
- IntelliJ IDEA 13试用手记(附详细截图)