Skip to content

Commit fe9b45b

Browse files
authored
Merge pull request #3 from Webcampak/develop
Preparation for version v3.0.1
2 parents 1051e0f + 973cdd8 commit fe9b45b

File tree

16 files changed

+63
-13
lines changed

16 files changed

+63
-13
lines changed

Sencha/App6.0/workspace/Desktop/app/controller/desktop/authentication/UserSettings.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ Ext.define("WPAKD.controller.desktop.authentication.UserSettings", {
6363
record = this.getDesktopAuthenticationUserSettingsStore().findRecord("CODE", "CURRENTBUILD", 0, false, false, true);
6464
if (record) {
6565
this.getDesktoptoolbarbottombuild().setText(i18n.gettext("Build: ") + record.get("VALUE"));
66+
var currentCoreVersion = this.getDesktopAuthenticationUserSettingsStore().findRecord("CODE", "VERSION_CORE", 0, false, false, true);
67+
var currentUiVersion = this.getDesktopAuthenticationUserSettingsStore().findRecord("CODE", "VERSION_UI", 0, false, false, true);
68+
var currentApiVersion = this.getDesktopAuthenticationUserSettingsStore().findRecord("CODE", "VERSION_API", 0, false, false, true);
69+
var currentCliVersion = this.getDesktopAuthenticationUserSettingsStore().findRecord("CODE", "VERSION_CLI", 0, false, false, true);
70+
if (currentCoreVersion && currentUiVersion && currentApiVersion && currentCliVersion) {
71+
this.getDesktoptoolbarbottombuild().setTooltip("CORE: " + currentCoreVersion.get("VALUE") + "<br />UI: " + currentUiVersion.get("VALUE") + "<br />API: " + currentApiVersion.get("VALUE") + "<br />CLI: " + currentCliVersion.get("VALUE"));
72+
}
6673
}
6774

6875
record = this.getDesktopAuthenticationUserSettingsStore().findRecord("CODE", "CURRENTUSERNAME", 0, false, false, true);

Sencha/App6.0/workspace/Desktop/app/model/desktop/authentication/UserSettings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Ext.define("WPAKD.model.desktop.authentication.UserSettings", {
88
idProperty : "ID",
99

1010
fields: [
11-
{ name: "ID", type: "int" }
11+
{ name: "ID", type: "int" }
1212
, { name: "CODE", type: "string" }
1313
, { name: "VALUE", type: "string" }
1414
]

Sencha/App6.0/workspace/Desktop/app/view/accesscontrol/Main.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ Ext.define("WPAKD.view.accesscontrol.Main", {
1212
width: 1000,
1313
height: 600,
1414

15-
stateful: true,
16-
stateId: "accesscontrolmain",
17-
1815
scroll: true,
1916
autoScroll: true,
2017
maximizable: true,

Sencha/App6.0/workspace/Desktop/app/view/accesscontrol/customers/CustomersList.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ Ext.define("WPAKD.view.accesscontrol.customers.CustomersList", {
88

99
, store: "accesscontrol.customers.Customers"
1010

11-
, stateful: true
12-
, stateId: "accesscontrolcustomerscustomerslist"
13-
1411
, autoScroll: true
1512
, columns: [
1613
{text: i18n.gettext("CUS_ID"), dataIndex: "CUS_ID", align: "right", width: 40, sortable: true, hidden: true }

Sencha/App6.0/workspace/Desktop/bootstrap.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

Sencha/App6.0/workspace/Desktop/bootstrap.jsonp

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*global Ext*/
2+
//<debug>
3+
console.log(new Date().toLocaleTimeString() + ": Log: Load: WPAKD.overrides.RowEditor");
4+
//</debug>
5+
Ext.define("override", {
6+
override: "Ext.grid.RowEditor",
7+
afterRender: function() {
8+
var me = this,
9+
plugin = me.editingPlugin,
10+
grid = plugin.grid;
11+
//the FIX
12+
me.scroller = grid.view.getScrollable();
13+
me.callSuper(arguments);
14+
// The scrollingViewEl is the TableView which scrolls
15+
me.scrollingView = grid.lockable ? grid.normalGrid.view : grid.view;
16+
me.scrollingViewEl = me.scrollingView.el;
17+
me.scroller.on("scroll", me.onViewScroll, me);
18+
// Prevent from bubbling click events to the grid view
19+
me.mon(me.el, {
20+
click: Ext.emptyFn,
21+
stopPropagation: true
22+
});
23+
// Ensure that the editor width always matches the total header width
24+
me.mon(grid, "resize", me.onGridResize, me);
25+
if (me.lockable) {
26+
grid.lockedGrid.view.on("resize", "onGridResize", me);
27+
}
28+
me.el.swallowEvent([
29+
"keypress",
30+
"keydown"
31+
]);
32+
me.initKeyNav();
33+
me.mon(plugin.view, {
34+
beforerefresh: me.onBeforeViewRefresh,
35+
refresh: me.onViewRefresh,
36+
itemremove: me.onViewItemRemove,
37+
scope: me
38+
});
39+
me.syncAllFieldWidths();
40+
if (me.floatingButtons) {
41+
me.body.dom.setAttribute("aria-owns", me.floatingButtons.id);
42+
}
43+
}
44+
45+
})

Sencha/App6.0/workspace/Desktop/sass/example/bootstrap.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

Sencha/App6.0/workspace/Desktop/sass/example/bootstrap.jsonp

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

Sencha/App6.0/workspace/build/production/WPAKD/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)