Commit Graph

23 Commits

Author SHA1 Message Date
Dominik Csapak
a498f27991 add apiCallDone callback for window.edit
we sometimes want/need to do something when the api call
finished and need to know whether it was successful or need the result

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-04-27 14:03:37 +02:00
Dominik Csapak
5d3089cd94 better default focus selection
we do not want to focus on hidden/disabled fields,
because that focus gets lost and prevents some things
e.g. cancelling with ESC

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-04-06 13:44:27 +02:00
Dominik Csapak
880df5d504 add a checkbox to edit windows for advanced options
if the inputpanel has advanced options, show a checkbox to
show/hide them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-04-06 10:08:31 +02:00
Thomas Lamprecht
fde8e8bbb9 task view, progress: add taskDone callback
and integrate it into the edit window

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-27 14:03:14 +02:00
Thomas Lamprecht
8d8dbfc5b9 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>
2018-03-27 11:53:30 +02:00
Dominik Csapak
31a5025184 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
2018-01-11 14:48:13 +01:00
Dominik Csapak
42a9df8b1f add the missing explanation of onlineHelp 2018-01-11 14:48:13 +01:00
Thomas Lamprecht
641df09e9e 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>
2017-12-07 12:00:27 +01:00
Dominik Csapak
b33f451f98 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>
2017-11-14 11:37:04 +01:00
Dominik Csapak
00ee113714 use Proxmox.window.TaskProgress instead of PVE.window.TaskProgress
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-11-14 11:36:22 +01:00
Dominik Csapak
ffea05ec4e add custom submittext to Edit Window
we will use this for the restore window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-11-14 11:36:12 +01:00
Dietmar Maurer
c3457485e6 allow to set onlineHelp on Proxmox.window.Edit 2017-10-03 13:17:47 +02:00
Dietmar Maurer
a7dcbdebb9 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>
2017-04-25 06:17:22 +02:00
Dietmar Maurer
a1891d7676 PasswordEdit.js: do not allow blank passwords 2017-03-30 08:03:03 +02:00
Dietmar Maurer
4c21393ea7 window/PasswordEdit.js: cleanup 2017-03-30 06:50:27 +02:00
Dietmar Maurer
a33ba257ed window/Edit.js: implement autoLoad feature 2017-03-29 19:36:13 +02:00
Dietmar Maurer
1b07a95ac8 window/Edit.js: query for inputpanel
Because access to item[0] return the config object (not the real object).
2017-03-28 15:12:22 +02:00
Dietmar Maurer
0f35d1ffdb PasswordEdit.js: use larger labels to avoid line break 2017-03-27 12:32:05 +02:00
Dietmar Maurer
ec62162dae fix typo, use correct Proxmox namespace 2017-03-27 11:04:46 +02:00
Dietmar Maurer
c9441d5f32 window/PasswordEdit.js: copied from pve-manager 2017-03-27 11:04:46 +02:00
Dietmar Maurer
d71391402c add ServiceView widget 2017-01-31 15:21:37 +01:00
Dietmar Maurer
53ac9bca54 add render_upid to Proxmox.Utils 2017-01-31 12:18:29 +01:00
Dietmar Maurer
0669450939 add TimeView, TimeEdit and TaskViewer 2017-01-30 13:40:51 +01:00