timeshift.js: Cosmetics - option layout, groupings plus updates to help text and image..

This commit is contained in:
Ian 2014-05-24 16:17:34 +01:00
parent 12f26763ef
commit 30ff96a024
3 changed files with 39 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -1,5 +1,7 @@
<div class="hts-doc-text">
<img src="docresources/configtimeshifttab.png">
<p>
This tab is used to configure timeshift properties.

View file

@ -47,7 +47,7 @@ tvheadend.timeshift = function() {
});
var timeshiftUnlPeriod = new Ext.form.Checkbox({
fieldLabel: '&nbsp;&nbsp;&nbsp;(unlimited)',
fieldLabel: 'Unlimited time',
name: 'timeshift_unlimited_period',
Width: 300
});
@ -60,7 +60,7 @@ tvheadend.timeshift = function() {
});
var timeshiftUnlSize = new Ext.form.Checkbox({
fieldLabel: '&nbsp;&nbsp;&nbsp;(unlimited)',
fieldLabel: 'Unlimited size',
name: 'timeshift_unlimited_size',
Width: 300
});
@ -94,7 +94,39 @@ tvheadend.timeshift = function() {
}
});
var confpanel = new Ext.FormPanel({
var timeshiftPanelA = new Ext.form.FieldSet({
width: 500,
autoHeight: true,
border: false,
items : [ timeshiftMaxPeriod, timeshiftMaxSize ]
});
var timeshiftPanelB = new Ext.form.FieldSet({
width: 200,
autoHeight: true,
border: false,
items : [ timeshiftUnlPeriod,timeshiftUnlSize ]
});
var timeshiftPanel = new Ext.form.FieldSet({
title: 'Timeshift Options',
width: 700,
autoHeight: true,
collapsible: true,
animCollapse: true,
items : [
timeshiftEnabled,
timeshiftOndemand,
timeshiftPath,
{
layout: 'column',
border: false,
items: [ timeshiftPanelA, timeshiftPanelB]
}
]
});
var confpanel = new Ext.form.FormPanel({
title : 'Timeshift',
iconCls : 'clock',
border : false,
@ -106,12 +138,8 @@ tvheadend.timeshift = function() {
layout : 'form',
defaultType : 'textfield',
autoHeight : true,
items : [
timeshiftEnabled, timeshiftOndemand,
timeshiftPath,
timeshiftMaxPeriod, timeshiftUnlPeriod,
timeshiftMaxSize, timeshiftUnlSize
],
animCollapse : true,
items : [ timeshiftPanel ],
tbar : [ saveButton, '->', helpButton ]
});