navModel.setPosition();
}
- // Do not leave the element in tht state in case refresh fails, and restoration
+ // Do not leave the element in that state in case refresh fails, and restoration
// closure not called.
activeElement.resumeFocusEvents();
// extj 6.7 reversed mousewheel direction... (fixed in 7.3)
// https://forum.sencha.com/forum/showthread.php?472517-Mousewheel-scroll-direction-in-numberfield-with-spinners
-// alse use the 'wheel' event instead of 'mousewheel' (fixed in 7.3)
+// also use the 'wheel' event instead of 'mousewheel' (fixed in 7.3)
Ext.define('Proxmox.form.field.Spinner', {
override: 'Ext.form.field.Spinner',
return;
}
- let items = container.query('>'); // direct childs
+ let items = container.query('>'); // direct children
factor = Math.min(factor, items.length);
container.oldFactor = factor;
singleton: true,
// Returns a Promise resolving to the result of an `API2Request` or rejecting to the error
- // repsonse on failure
+ // response on failure
api2: function(reqOpts) {
return new Promise((resolve, reject) => {
delete reqOpts.callback; // not allowed in this api
* example2: [ {data1: "xyz", data2: "abc"} ]
* returns [{key: "data1", value: "xyz"}, {key: "data2", value: "abc"}]
*
- * If you set 'readArray', the reader expexts the object as array:
+ * If you set 'readArray', the reader expects the object as array:
*
* example3: [ { key: "data1", value: "xyz", p2: "cde" }, { key: "data2", value: "abc", p2: "efg" }]
* returns [{key: "data1", value: "xyz", p2: "cde}, {key: "data2", value: "abc", p2: "efg"}]
unit: 'MiB',
unitPostfix: '',
- // use this if the backend saves values in another unit tha bytes, e.g.,
+ // use this if the backend saves values in another unit than bytes, e.g.,
// for KiB set it to 'KiB'
backendUnit: undefined,
// use include-partitions=1 as a parameter
includePartitions: false,
- // the property the backend wnats for the type ('type' by default)
+ // the property the backend wants for the type ('type' by default)
typeProperty: 'type',
valueField: 'devpath',
valueField: 'key',
queryMode: 'local',
- // overide framework function to implement deleteEmpty behaviour
+ // override framework function to implement deleteEmpty behaviour
getSubmitData: function() {
let me = this,
data = null,
},
],
listeners: {
- load: function(store, records, successfull) {
- if (successfull) {
+ load: function(store, records, successful) {
+ if (successful) {
records.forEach(function(record) {
if (record.data.cidr6) {
let dest = record.data.cidr ? record.copy(null) : record;
-/** Renders a list of key values objets
+/** Renders a list of key values objects
Mandatory Config Parameters:
-rows: an object container where each propery is a key-value object we want to render
+rows: an object container where each property is a key-value object we want to render
rows: {
keyboard: {
let values = option.Values.join(' ');
text += `${key}: ${values}<br>`;
} else {
- throw "unkown file type";
+ throw "unknown file type";
}
});
return text;
/*
* Display log entries in a panel with scrollbar
* The log entries are automatically refreshed via a background task,
- * with newest entries comming at the bottom
+ * with newest entries coming at the bottom
*/
Ext.define('Proxmox.panel.JournalView', {
extend: 'Ext.panel.Panel',
/*
* Display log entries in a panel with scrollbar
* The log entries are automatically refreshed via a background task,
- * with newest entries comming at the bottom
+ * with newest entries coming at the bottom
*/
Ext.define('Proxmox.panel.LogView', {
extend: 'Ext.panel.Panel',
datafield.setValue(extradata.join('\n'));
if (!me.createdInitially) {
datafield.resetOriginalValue();
- me.createdInitially = true; // save that we initally set that
+ me.createdInitially = true; // save that we initially set that
}
},