GUI -- Allows for col-width="_px" to be specified in the html of table headers.
- Refactored table.js code
- Added helper functions to FnService.
- Deleted "sortable" from html in columns where sorting doesn't make sense (icons).
- Updated unit tests to reflect changes
Change-Id: I425101071bd5c7f237d64d98084a726cfce1d016
diff --git a/web/gui/src/main/webapp/app/fw/widget/toolbar.js b/web/gui/src/main/webapp/app/fw/widget/toolbar.js
index 74867e5..7b9b6b0 100644
--- a/web/gui/src/main/webapp/app/fw/widget/toolbar.js
+++ b/web/gui/src/main/webapp/app/fw/widget/toolbar.js
@@ -75,11 +75,6 @@
return null;
}
- function noPxWidth(elem) {
- return Number(elem.style('width').replace(/px$/, ''));
- }
-
-
// ==================================
function createToolbar(id, opts) {
@@ -119,7 +114,7 @@
}
function adjustWidth(btnWidth) {
- if (noPxWidth(currentRow) >= maxWidth) {
+ if (fs.noPxStyle(currentRow, 'width') >= maxWidth) {
tbWidth += btnWidth;
maxWidth = tbWidth;
}