]> git.proxmox.com Git - proxmox-widget-toolkit.git/log
proxmox-widget-toolkit.git
6 years agotask view, progress: add taskDone callback
Thomas Lamprecht [Tue, 27 Mar 2018 12:00:49 +0000 (14:00 +0200)]
task view, progress: add taskDone callback

and integrate it into the edit window

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agowindow/Edit: allow showing TaskViewer instead of TaskProgress
Thomas Lamprecht [Tue, 27 Mar 2018 05:27:14 +0000 (07:27 +0200)]
window/Edit: allow showing TaskViewer instead of TaskProgress

let our users decide if the want to show a TaskProgress window or a
TaskViewer window, so that they do not always must create the Viewer
their self

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoadd labelWidth to the fieldDefaults in add_*_row
Dominik Csapak [Fri, 16 Mar 2018 13:53:54 +0000 (14:53 +0100)]
add labelWidth to the fieldDefaults in add_*_row

this resizes the editwindow to the correct size

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd an optional renderer for integer rows in ObjectGrid
Dominik Csapak [Fri, 16 Mar 2018 09:52:44 +0000 (10:52 +0100)]
add an optional renderer for integer rows in ObjectGrid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-13
Dietmar Maurer [Thu, 8 Mar 2018 10:38:18 +0000 (11:38 +0100)]
bump version to 1.0-13

6 years agoremove gettext definition in Utils.js
Dominik Csapak [Tue, 6 Mar 2018 08:06:28 +0000 (09:06 +0100)]
remove gettext definition in Utils.js

this should not be here, rather where we include the language files
(like in pve), because this is not ecma conform and behaves very
different in different browsers (e.g. safari ignores the if check
completely and simply uses that function definition)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-12
Thomas Lamprecht [Fri, 23 Feb 2018 10:14:02 +0000 (11:14 +0100)]
bump version to 1.0-12

6 years agoskip config property for cbind mixin
Dominik Csapak [Tue, 20 Feb 2018 08:48:19 +0000 (09:48 +0100)]
skip config property for cbind mixin

if we use a component with cbind in a static declaration,
we do not want to traverse the 'config' property, as this can lead
to properties of base classes which produce errors on copying

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-11
Fabian Grünbichler [Fri, 16 Feb 2018 12:06:57 +0000 (13:06 +0100)]
bump version to 1.0-11

6 years agorename pve(Show|Hide)Help events
Dominik Csapak [Tue, 13 Feb 2018 13:20:10 +0000 (14:20 +0100)]
rename pve(Show|Hide)Help events

we renamed them in the helpButton, we also have to rename them here
this prevented the help button to show up in the vm/ct creation wizard

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agomixin/CBind: allow binding sub elements
Thomas Lamprecht [Fri, 9 Feb 2018 07:28:34 +0000 (08:28 +0100)]
mixin/CBind: allow binding sub elements

allow to access sub elements of configuration items for binding.

E.g., if the following configuration is present:

foo: {
    bar: true
}

one could do:

xtype: 'displayfield',
cbind {
    value: '{foo.bar}'
}
[...]

This mirrors the abillity of ExtJS's 'bind', which can do this also.
Simple implementation mirroring the surrounding code.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobuildsys: prevent parallel deb builds
Wolfgang Bumiller [Fri, 9 Feb 2018 09:13:31 +0000 (10:13 +0100)]
buildsys: prevent parallel deb builds

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agochange the hard coded text against the translated text
Wolfgang Link [Wed, 20 Dec 2017 12:38:27 +0000 (13:38 +0100)]
change the hard coded text against the translated text

6 years agoshow VLAN aware setting in NetworkView.
Wolfgang Link [Wed, 20 Dec 2017 12:38:26 +0000 (13:38 +0100)]
show VLAN aware setting in NetworkView.

6 years agobump version to 1.0-10
Dominik Csapak [Thu, 25 Jan 2018 09:23:20 +0000 (10:23 +0100)]
bump version to 1.0-10

6 years agoTimeEdit: use schematic declaration
Thomas Lamprecht [Tue, 16 Jan 2018 13:20:48 +0000 (14:20 +0100)]
TimeEdit: use schematic declaration

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agotoolkit: remove PVE specific VType
Thomas Lamprecht [Tue, 16 Jan 2018 13:20:47 +0000 (14:20 +0100)]
toolkit: remove PVE specific VType

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agotoolkit: add MacPrefix vtype
Thomas Lamprecht [Tue, 19 Dec 2017 07:16:15 +0000 (08:16 +0100)]
toolkit: add MacPrefix vtype

useful for our PVE dc/options panel

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoreintroduce api2request checks for toolkit
Dominik Csapak [Mon, 15 Jan 2018 13:51:24 +0000 (14:51 +0100)]
reintroduce api2request checks for toolkit

6 years agoadd proxmoxlib to the clean target
Dominik Csapak [Mon, 15 Jan 2018 13:13:11 +0000 (14:13 +0100)]
add proxmoxlib to the clean target

6 years agoadd task_desc_table and format_task_description from pve
Dominik Csapak [Mon, 15 Jan 2018 13:11:02 +0000 (14:11 +0100)]
add task_desc_table and format_task_description from pve

since the Task is in the widget-toolkit, passing
a renderer/list a few levels of components down is not nice
and there are not *that* many strings in the task_desc_table,
we put it here, so that either pve and pmg can use them

6 years agoremove unnecessary formatter
Dominik Csapak [Mon, 15 Jan 2018 13:09:53 +0000 (14:09 +0100)]
remove unnecessary formatter

6 years agoadd all languages from pve
Dominik Csapak [Mon, 15 Jan 2018 13:09:41 +0000 (14:09 +0100)]
add all languages from pve

6 years agoComboGrid: open picker also when focusing an editable field
Dominik Csapak [Mon, 8 Jan 2018 12:03:00 +0000 (13:03 +0100)]
ComboGrid: open picker also when focusing an editable field

port commit
851c032d69ad5ae23725dd1add9e4084ebc12650
from pve-manager

commit message:

    ComboBoxes provided by UI frameworks normally show their selection
    possibilities once focused, ExtJS does this too but not on editable
    (and thus filterable) input fields. Add a logic which allows this too
    and streamlines the behavior of ComboGrid/Box like components.

    To avoid a glitch, where clicking the "picker trigger" (the down
    arrow which normally toggles the selection picker) would first focus
    the element - thus expanding it - and only then causing a toggle
    which collapses it again, we overwrite the 'Ext.form.trigger.Trigger'
    onMouseDown so that we can skip a expansion on this event.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoComboGrid: improve setting 'editable' default value
Dominik Csapak [Mon, 8 Jan 2018 11:58:56 +0000 (12:58 +0100)]
ComboGrid: improve setting 'editable' default value

port commit
bff876ecb5f3388b7d65c491680b9a40574e4744
from pve-manager

commit message:

    This allows child classes to use another default, the initialConfig
    didn't allowed that.
    This is also the ExtJS like way to set defaults.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agofix var assignments
Dominik Csapak [Thu, 4 Jan 2018 10:29:50 +0000 (11:29 +0100)]
fix var assignments

only declare 'grid' once

6 years agoexplicit set button focus respecting the 'dangerous' option
Dominik Csapak [Thu, 4 Jan 2018 10:28:58 +0000 (11:28 +0100)]
explicit set button focus respecting the 'dangerous' option

port commit
4dc6bd326a829d5bf708c4a33722d5a8c6304f9c
from pve-manager

6 years agoplace space on correct side of colon
Dominik Csapak [Tue, 19 Dec 2017 09:37:30 +0000 (10:37 +0100)]
place space on correct side of colon

6 years agochange invalid class
Dominik Csapak [Tue, 19 Dec 2017 09:11:34 +0000 (10:11 +0100)]
change invalid class

so that we can safely create a css style for it
(in our namespace)

6 years agopass given defaults in Edit window
Dominik Csapak [Mon, 18 Dec 2017 09:36:14 +0000 (10:36 +0100)]
pass given defaults in Edit window

this is a port of the change for the Edit window from
pve-manager commit:
ff740ccbeed1e7e2131b14c9ce50f300f24201f6

which passes the given defaults to the items

6 years agoadd the missing explanation of onlineHelp
Dominik Csapak [Mon, 18 Dec 2017 09:34:05 +0000 (10:34 +0100)]
add the missing explanation of onlineHelp

6 years agocheck earlier if the logview is destroyed
Dominik Csapak [Mon, 18 Dec 2017 09:32:22 +0000 (10:32 +0100)]
check earlier if the logview is destroyed

this is a port from pve-manager commit:
bde1efbf66cf8794d99708b41d92b2106c44f192

which fixes a problem with destroying the logview in extjs 6.2

6 years agoadd version as comment to js file
Dominik Csapak [Mon, 18 Dec 2017 09:31:13 +0000 (10:31 +0100)]
add version as comment to js file

this can be used in the proxy to read the installed version
of the widget toolkit (without needing to read the info from
apt/dpkg/etc.)

6 years agotoolkit: fix #1516: mouse-scrolling of overflowhandlers in firefox
Thomas Lamprecht [Tue, 19 Dec 2017 07:16:14 +0000 (08:16 +0100)]
toolkit: fix #1516: mouse-scrolling of overflowhandlers in firefox

this is a workaround for scrolling in toolbars, etc. in firefox with
the mouse.
while the result is not very "pretty", it maintains the old behaviour
for all other browsers and makes it work in firefox

we may drop this when we update to a new extjs release

commit 484bf3f29e58d0f96c65e6dca6b5dd95eaea180c from pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agotoolkit: fix #1510: don't scroll back to focus when view refreshes
Thomas Lamprecht [Tue, 19 Dec 2017 07:16:13 +0000 (08:16 +0100)]
toolkit: fix #1510: don't scroll back to focus when view refreshes

adds a workaround, so that we restore the scroll position when we
restore the focus. Fixies an annoying issue where, if a user had an
ellemtn selected, scrolled down and then a store refresh re-rendered
the view it was scrolled back to the selected item and the user lost
his scrolling position.

Add also the 'jumpToFocus' flag to allow enabling the old behaviour

commit e6f2a94f4fff3c125e8406a21d8d6159aca1421e from pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agotoolkit: fix #1307: don\'t use language dependent separator
Thomas Lamprecht [Tue, 19 Dec 2017 07:16:12 +0000 (08:16 +0100)]
toolkit: fix #1307: don\'t use language dependent separator

by default, extjs submits the language dependent decimal separator,
e.g., ',' (comma) for german and '.' (dot) for english.

We always want the dot.

commit 5c660b6d1302a5fbb3dcf477cf8b5adc9f798530 from pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agotoolkit: remove unneeded applyEmptyText
Thomas Lamprecht [Tue, 19 Dec 2017 07:16:11 +0000 (08:16 +0100)]
toolkit: remove unneeded applyEmptyText

The parent method does this already in ExtJS 6

commit d19ffc1bb078e42a042c5c73797d713aa9cf9bcc from pve-manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoHelpButton: be backward compatible with PVE help mapping
Thomas Lamprecht [Mon, 11 Dec 2017 10:18:14 +0000 (11:18 +0100)]
HelpButton: be backward compatible with PVE help mapping

pve-doc-generator used pveOnlineHelp as variable name while the
widget toolkit expects proxmoxOnlineHelp, allow both for now.

As its not quite clear when the switch to the widget toolkit happens
this is more flexible than changing the generator and adding a
versioned build dependency in pve-manager for it.
We normally do not bump pve-docs during releases either.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
CC: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-9
Dietmar Maurer [Mon, 11 Dec 2017 13:43:35 +0000 (14:43 +0100)]
bump version to 1.0-9

6 years agoadd Xtermjs popup helper
Dominik Csapak [Mon, 11 Dec 2017 13:30:53 +0000 (14:30 +0100)]
add Xtermjs popup helper

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoUtils: fix some lint errors
Thomas Lamprecht [Wed, 6 Dec 2017 17:39:53 +0000 (18:39 +0100)]
Utils: fix some lint errors

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agotaskviewer: port over extraTite config parameter
Thomas Lamprecht [Wed, 6 Dec 2017 17:39:52 +0000 (18:39 +0100)]
taskviewer: port over extraTite config parameter

commit acc9bf4752972ffd79af1c78510fcce24c2db959 (Close #1268: Show
migration start server and migration end server) introduced the
possibility to display additional information in the TaskViewer
window title. This change happened after the widget toolkit formed
and seems reasonable to have here, thus port it over.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoObjectGrid: add_text_row: allow setting vtype for editor
Thomas Lamprecht [Wed, 6 Dec 2017 13:37:28 +0000 (14:37 +0100)]
ObjectGrid: add_text_row: allow setting vtype for editor

Allow setting a validation type for the editors text field

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 1.0-8
Dietmar Maurer [Wed, 29 Nov 2017 11:09:26 +0000 (12:09 +0100)]
bump version to 1.0-8

6 years agoremove updatequeue
Dominik Csapak [Wed, 29 Nov 2017 10:39:17 +0000 (11:39 +0100)]
remove updatequeue

since all modern browsers can properly handle multiple
xmlhttprequests, we do not need to serialize them ourselves, but
leave it to the browser

this fixes an issue wehre a canceled request of an updatestore
blocks all other updatestores until refresh

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-7
Dietmar Maurer [Thu, 23 Nov 2017 06:30:09 +0000 (07:30 +0100)]
bump version to 1.0-7

6 years agoUpdateStore.js - fix update problem with chrome
Dietmar Maurer [Thu, 23 Nov 2017 06:27:27 +0000 (07:27 +0100)]
UpdateStore.js - fix update problem with chrome

6 years agobump version to 1.0-6
Dietmar Maurer [Tue, 14 Nov 2017 10:39:20 +0000 (11:39 +0100)]
bump version to 1.0-6

6 years agochange 'create' parameter to 'isCreate'
Dominik Csapak [Tue, 14 Nov 2017 10:17:07 +0000 (11:17 +0100)]
change 'create' parameter to 'isCreate'

this mirrors the changes from Emmanuel in commit
9af71828d42c67b13144b568eee828b215054399
of pve-manager

where he renamed the 'create' parameter of the Edit Window to
isCreate, to avoid countless jslint errors regarding type confusion

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agomake network devices types configureable
Dominik Csapak [Tue, 14 Nov 2017 10:17:06 +0000 (11:17 +0100)]
make network devices types configureable

so that we can show all on pve and only bonds on pmg

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agouse Proxmox.window.TaskProgress instead of PVE.window.TaskProgress
Dominik Csapak [Tue, 14 Nov 2017 10:17:05 +0000 (11:17 +0100)]
use Proxmox.window.TaskProgress instead of PVE.window.TaskProgress

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd custom submittext to Edit Window
Dominik Csapak [Tue, 14 Nov 2017 10:17:04 +0000 (11:17 +0100)]
add custom submittext to Edit Window

we will use this for the restore window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd missing BondModeSelector to widget toolkit
Dominik Csapak [Tue, 14 Nov 2017 10:17:03 +0000 (11:17 +0100)]
add missing BondModeSelector to widget toolkit

this is needed for the node/NetworkEdit.js

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-5
Dietmar Maurer [Tue, 14 Nov 2017 07:12:52 +0000 (08:12 +0100)]
bump version to 1.0-5

6 years agouse (de)activate events for dns/timeview
Dominik Csapak [Fri, 10 Nov 2017 11:57:26 +0000 (12:57 +0100)]
use (de)activate events for dns/timeview

this allows us to properly stop the updatestore when in a
tab/cardpanel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 1.0-4
Dietmar Maurer [Tue, 24 Oct 2017 06:45:40 +0000 (08:45 +0200)]
bump version to 1.0-4

6 years agoadd textarea/enter workaround
Dominik Csapak [Mon, 16 Oct 2017 12:02:23 +0000 (14:02 +0200)]
add textarea/enter workaround

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix updateStore destroy
Dominik Csapak [Wed, 11 Oct 2017 09:31:07 +0000 (11:31 +0200)]
fix updateStore destroy

the store never fires/gets a destroy event, thus it
never stops the load_task and never unqueues itself in case
the store gets destroyed but not explicitely stopped

with overriding the destroy method, this works now as intended

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoRRDChart.js: add the seriesConfig parameter
Dominik Csapak [Tue, 10 Oct 2017 13:10:25 +0000 (15:10 +0200)]
RRDChart.js: add the seriesConfig parameter

so that we can override the the series with custom options like 'color'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoRRDChart.js: add the noTool parameter
Dominik Csapak [Tue, 10 Oct 2017 13:10:24 +0000 (15:10 +0200)]
RRDChart.js: add the noTool parameter

so that we can omit the panel header

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoRRDChart.js: use the fieldtitle or fieldname as axistitle
Dominik Csapak [Tue, 10 Oct 2017 13:10:23 +0000 (15:10 +0200)]
RRDChart.js: use the fieldtitle or fieldname as axistitle

if no unit applies

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd autostart and alias to UpdateStore
Dominik Csapak [Tue, 10 Oct 2017 13:10:22 +0000 (15:10 +0200)]
add autostart and alias to UpdateStore

the alias is to use it in a declarative syntax,
the autostart parameter automatically starts the update

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd format_size from pve
Dominik Csapak [Tue, 10 Oct 2017 13:10:21 +0000 (15:10 +0200)]
add format_size from pve

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd GaugeWidget from PVE
Dominik Csapak [Tue, 10 Oct 2017 13:10:20 +0000 (15:10 +0200)]
add GaugeWidget from PVE

and adds the functionality to set a different fontsize

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoTasks.js - correctly display load errors
Dietmar Maurer [Mon, 9 Oct 2017 05:33:27 +0000 (07:33 +0200)]
Tasks.js - correctly display load errors

6 years agoNetworkView.js - correctly set eror mask
Dietmar Maurer [Mon, 9 Oct 2017 05:00:32 +0000 (07:00 +0200)]
NetworkView.js - correctly set eror mask

6 years agoonly define gettext if not already defined
Dietmar Maurer [Wed, 4 Oct 2017 10:17:42 +0000 (12:17 +0200)]
only define gettext if not already defined

6 years agoLanguageSelector.js - add language selector
Dietmar Maurer [Wed, 4 Oct 2017 08:50:59 +0000 (10:50 +0200)]
LanguageSelector.js - add language selector

6 years agodo not translate subscription level
Dietmar Maurer [Wed, 4 Oct 2017 07:59:11 +0000 (09:59 +0200)]
do not translate subscription level

To avoid confusion.

6 years agonew helper format_subscription_level
Dietmar Maurer [Tue, 3 Oct 2017 12:35:34 +0000 (14:35 +0200)]
new helper format_subscription_level

6 years agoallow to set onlineHelp on Proxmox.window.Edit
Dietmar Maurer [Tue, 3 Oct 2017 11:17:47 +0000 (13:17 +0200)]
allow to set onlineHelp on Proxmox.window.Edit

6 years agoRevert "add grid/SelectFeature.js"
Dietmar Maurer [Wed, 27 Sep 2017 11:11:57 +0000 (13:11 +0200)]
Revert "add grid/SelectFeature.js"

This reverts commit e58445b3a458adac3f881b69959a468ef273333a.

This is no longer required, because we can simply set:

    viewConfig: {
enableTextSelection: true
    },

6 years agoadd grid/SelectFeature.js
Dietmar Maurer [Wed, 27 Sep 2017 10:52:39 +0000 (12:52 +0200)]
add grid/SelectFeature.js

6 years agoadd HelpButton class
Dietmar Maurer [Wed, 27 Sep 2017 08:04:29 +0000 (10:04 +0200)]
add HelpButton class

6 years agonew checked_command helper, add APT.js
Dietmar Maurer [Thu, 21 Sep 2017 11:05:07 +0000 (13:05 +0200)]
new checked_command helper, add APT.js

6 years agoDateTimeField.js - relay change events
Dietmar Maurer [Thu, 21 Sep 2017 07:36:36 +0000 (09:36 +0200)]
DateTimeField.js - relay change events

6 years agoform/DateTimeField.js - new widget to select Date with Time
Dietmar Maurer [Wed, 20 Sep 2017 10:42:19 +0000 (12:42 +0200)]
form/DateTimeField.js - new widget to select Date with Time

6 years agobump version to 1.0-3
Dietmar Maurer [Wed, 6 Sep 2017 07:37:48 +0000 (09:37 +0200)]
bump version to 1.0-3

6 years agomonStoreErrors: new option clearMaskBeforeLoad
Dietmar Maurer [Wed, 6 Sep 2017 06:53:12 +0000 (08:53 +0200)]
monStoreErrors: new option clearMaskBeforeLoad

To clear error mask before load starts.

6 years agoadd RRDChart class
Dietmar Maurer [Tue, 29 Aug 2017 06:43:50 +0000 (08:43 +0200)]
add RRDChart class

6 years agoadd RRDStore class
Dietmar Maurer [Tue, 29 Aug 2017 05:03:32 +0000 (07:03 +0200)]
add RRDStore class

Copied from pve-manager:

- removed field specification
- changed statid to proxmoxRRDTypeSelection

6 years agoadd RRDTypeSelector class
Dietmar Maurer [Tue, 29 Aug 2017 04:25:25 +0000 (06:25 +0200)]
add RRDTypeSelector class

Mostly copied from pve-manager.

- added gettext translations
- changed class and state name

7 years agoset default focus and default button for edit window
Dietmar Maurer [Tue, 25 Apr 2017 04:17:22 +0000 (06:17 +0200)]
set default focus and default button for edit window

this patch sets following defaults for the edit window:

defaultFocus: 'field'

sets the focus on the first field it finds in its child items,
works for most edit windows, so that the cursor stands in a
textfield, or on a checkbox

defaultButton: 'submitbutton'

so that when someone presses enter, we submit the form

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd helpers to render uptime
Dietmar Maurer [Wed, 12 Apr 2017 08:55:32 +0000 (10:55 +0200)]
add helpers to render uptime

7 years agoObjectGrid.js: new monStoreErrors properties
Dietmar Maurer [Fri, 7 Apr 2017 04:31:34 +0000 (06:31 +0200)]
ObjectGrid.js: new monStoreErrors properties

7 years agobump version to 1.0-2
Dietmar Maurer [Wed, 5 Apr 2017 08:23:15 +0000 (10:23 +0200)]
bump version to 1.0-2

7 years agochange time of startupdate
Dominik Csapak [Wed, 5 Apr 2017 07:25:50 +0000 (09:25 +0200)]
change time of startupdate

because these components are not always children of
a tabpanel or standalone, we cannot use activate here
else we do not trigger the startupdate

disadvantage: when used as a child of a tabpanel,
it starts immediately instead of when clicking on the tab

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd baseurl of stdremovebutton to config
Dominik Csapak [Wed, 5 Apr 2017 07:25:49 +0000 (09:25 +0200)]
add baseurl of stdremovebutton to config

so that we can bind this

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoServiceView.js: add syslog button
Dietmar Maurer [Wed, 5 Apr 2017 05:36:50 +0000 (07:36 +0200)]
ServiceView.js: add syslog button

7 years agoServiceView.js: view syslog on dblclick
Dietmar Maurer [Tue, 4 Apr 2017 04:36:31 +0000 (06:36 +0200)]
ServiceView.js: view syslog on dblclick

7 years agobutton/Button.js: do not sreach for selection model if selModel === null
Dietmar Maurer [Sat, 1 Apr 2017 15:54:40 +0000 (17:54 +0200)]
button/Button.js: do not sreach for selection model if selModel === null

For Buttons which needs to trigger when nothing is selected.

7 years agoCBind.js: fix cloneTemplateArray
Dietmar Maurer [Fri, 31 Mar 2017 10:35:39 +0000 (12:35 +0200)]
CBind.js: fix cloneTemplateArray

7 years agoCBind.js: ignore case in regex
Dietmar Maurer [Fri, 31 Mar 2017 10:26:33 +0000 (12:26 +0200)]
CBind.js: ignore case in regex

7 years agoadd experimental CBind mixin
Dietmar Maurer [Fri, 31 Mar 2017 08:19:53 +0000 (10:19 +0200)]
add experimental CBind mixin

7 years agoPasswordEdit.js: do not allow blank passwords
Dietmar Maurer [Thu, 30 Mar 2017 06:03:03 +0000 (08:03 +0200)]
PasswordEdit.js: do not allow blank passwords

7 years agowindow/PasswordEdit.js: cleanup
Dietmar Maurer [Thu, 30 Mar 2017 04:50:27 +0000 (06:50 +0200)]
window/PasswordEdit.js: cleanup

7 years agodo not override getSubmitValue, add note about strange semantics
Dietmar Maurer [Thu, 30 Mar 2017 04:30:14 +0000 (06:30 +0200)]
do not override getSubmitValue, add note about strange semantics

7 years agowindow/Edit.js: implement autoLoad feature
Dietmar Maurer [Wed, 29 Mar 2017 17:36:13 +0000 (19:36 +0200)]
window/Edit.js: implement autoLoad feature

7 years agotry to use real config properties
Dietmar Maurer [Wed, 29 Mar 2017 16:47:19 +0000 (18:47 +0200)]
try to use real config properties

to generate getter/setter functions (required for bind)

7 years agoadd VType for password confirmation
Dietmar Maurer [Wed, 29 Mar 2017 15:50:05 +0000 (17:50 +0200)]
add VType for password confirmation