summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2009-02-16 17:55:57 +0000
committerAndreas Brachold <vdr07@deltab.de>2009-02-16 17:55:57 +0000
commitb34b123312da76de0eadb36590e197b9bc78f4d2 (patch)
tree15cb417e038c5a9cc559098bc25cca2cca6b7167
parent5d4744322f121348f4635bac6be2b19cf2f70385 (diff)
downloadxxv-b34b123312da76de0eadb36590e197b9bc78f4d2.tar.gz
xxv-b34b123312da76de0eadb36590e197b9bc78f4d2.tar.bz2
* Skins/jason: use nativ checkbox from framework
-rw-r--r--skins/jason/autotimers.js12
-rw-r--r--skins/jason/form.js31
2 files changed, 28 insertions, 15 deletions
diff --git a/skins/jason/autotimers.js b/skins/jason/autotimers.js
index 8c135fb..126971f 100644
--- a/skins/jason/autotimers.js
+++ b/skins/jason/autotimers.js
@@ -62,7 +62,7 @@ Ext.xxv.autotimerGrid = function(viewer, channels) {
this.activeColumn,
{ header: this.szColChannels
,dataIndex: 'channels'
- ,width: 150
+ ,width: 150
},{
header: this.szColDirectory
,dataIndex: 'directory'
@@ -222,10 +222,14 @@ Ext.extend(Ext.xxv.autotimerGrid, Ext.grid.EditorGridPanel, {
this.ctxRow = null;
}
}
- ,formatTitle: function(value, p, record) {
+ ,formatTitle: function(value, p, record) {
+ var style = "";
+ if((record.data.active & 1) == 0) {
+ style = " deactive";
+ }
return String.format(
- '<div class="topic"><b>{0}</b></div>',
- value
+ '<div class="topic{1}"><b>{0}</b></div>',
+ value, style
);
}
/******************************************************************************/
diff --git a/skins/jason/form.js b/skins/jason/form.js
index e9262f6..c0a5fc0 100644
--- a/skins/jason/form.js
+++ b/skins/jason/form.js
@@ -106,13 +106,21 @@ Ext.extend(Ext.xxv.Question, Ext.Window, {
config.xtype = 'hidden';
break;
case 'confirm':
- config.xtype = 'xxv-checkboxes';
- config.horizontal = true;
+ config.name = null;
+ config.xtype = 'fieldset';
config.hideLabel = true;
- config.items = [{
- value: 'y',
- boxLabel: Ext.util.Format.ellipsis(r[i].data.fieldLabel,80),
- checked: r[i].data.valuedef == 'y' ? true : false
+ config.fieldLabel = null;
+ config.hideBorders = true;
+ config.autoHeight = true;
+ config.labelWidth = 1;
+ config.baseCls = '';
+ config.style = 'border: 0px none;';
+ config.items = [{
+ xtype: 'checkbox'
+ ,labelSeparator: ''
+ ,boxLabel: Ext.util.Format.ellipsis(r[i].data.fieldLabel,80)
+ ,checked: r[i].data.valuedef == 'y' ? true : false
+ ,name: r[i].data.id
}
];
break;
@@ -263,14 +271,15 @@ Ext.extend(Ext.xxv.Question, Ext.Window, {
var record = this.store.getAt(i);
if(record.data.readonly == 0) {
var field = this.form.getForm().findField(record.data.id);
- /*switch(record.data.type){
+ if(field)
+ switch(record.data.type){
case 'confirm':
- params['__'+record.data.id] = field.getValue() ? 'y' : 'n';
+ params['__'+record.data.id] = field.checked ? 'y' : 'n';
break;
- default:*/
+ default:
params['__'+record.data.id] = field.getValue();
- /* break;
- } */
+ break;
+ }
}
}
Ext.Ajax.request({