|
@@ -241,6 +241,7 @@ class TableAjax extends ViewAjax {
|
|
|
<?php if ($tblAjaxMap) $tblAjaxMap->printCSS(); ?>
|
|
<?php if ($tblAjaxMap) $tblAjaxMap->printCSS(); ?>
|
|
|
<?php if ($tblAjaxMap) $tblAjaxMap->printJS(); ?>
|
|
<?php if ($tblAjaxMap) $tblAjaxMap->printJS(); ?>
|
|
|
<script src="stuff/jquery-ui-1.10.4.custom.min.js"></script>
|
|
<script src="stuff/jquery-ui-1.10.4.custom.min.js"></script>
|
|
|
|
|
+ <script src="static/jquery.doubleScroll.js"></script>
|
|
|
<link rel="stylesheet" type="text/css" href="stuff/jquery-ui-smoothness/jquery-ui-1.10.4.custom.min.css">
|
|
<link rel="stylesheet" type="text/css" href="stuff/jquery-ui-smoothness/jquery-ui-1.10.4.custom.min.css">
|
|
|
<style type="text/css">
|
|
<style type="text/css">
|
|
|
.AjaxTable{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}
|
|
.AjaxTable{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}
|
|
@@ -644,6 +645,7 @@ var p5UI_TableAjax_generateFunctionNode = function(funObj, rowPK, props) {
|
|
|
|
|
|
|
|
priv.initEvents = function() {
|
|
priv.initEvents = function() {
|
|
|
jQuery(_uiNodeCont).on('TableAjax:render', priv.onRender);
|
|
jQuery(_uiNodeCont).on('TableAjax:render', priv.onRender);
|
|
|
|
|
+ jQuery(window).on('resize', priv.onWindowResize)
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
priv.onRender = function(e) {
|
|
priv.onRender = function(e) {
|
|
@@ -668,9 +670,27 @@ var p5UI_TableAjax_generateFunctionNode = function(funObj, rowPK, props) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
priv.renderTable();
|
|
priv.renderTable();
|
|
|
|
|
+ priv.onWindowResize();
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ priv.onWindowResize = function() {
|
|
|
|
|
+ var stickyCol1Width = (12 + 3) * 4 + 2 * 5 + 1;
|
|
|
|
|
+ var stickyCol2Width = 50 + 2 * 5 + 1;
|
|
|
|
|
+ var contW = jQuery(_uiNodeCont).parent().width();
|
|
|
|
|
+ var colsW = stickyCol1Width + stickyCol2Width;
|
|
|
|
|
+ jQuery(_uiNodeCont).css({width:'' + (contW - colsW) + 'px'})//, marginLeft:'' + colsW + 'px', overflowX:'scroll', overflowY:'visible', paddingBottom:'1px'});
|
|
|
|
|
+
|
|
|
|
|
+ var wh = jQuery(window).height(); // returns height of browser viewport
|
|
|
|
|
+ var dh = jQuery(document).height(); // returns height of HTML document (same as pageHeight in screenshot)
|
|
|
|
|
+ if (dh > wh) {
|
|
|
|
|
+ jQuery(_uiNodeCont).doubleScroll()
|
|
|
|
|
+ jQuery(_uiNodeCont).prev('.doubleScroll-scroll-wrapper').css({float: 'right', display:'block'})
|
|
|
|
|
+ } else {
|
|
|
|
|
+ jQuery(_uiNodeCont).prev('.doubleScroll-scroll-wrapper').css({display:'none'})
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
priv.initialRender = function() {
|
|
priv.initialRender = function() {
|
|
|
_uiNode$Table = $('<table class="AjaxTable table table-striped table-hover table-bordered table-condensed"></table>').appendTo(_uiNodeCont);
|
|
_uiNode$Table = $('<table class="AjaxTable table table-striped table-hover table-bordered table-condensed"></table>').appendTo(_uiNodeCont);
|
|
|
_head = $('<thead></thead>').prependTo(_uiNode$Table);
|
|
_head = $('<thead></thead>').prependTo(_uiNode$Table);
|
|
@@ -705,7 +725,7 @@ var p5UI_TableAjax_generateFunctionNode = function(funObj, rowPK, props) {
|
|
|
*/
|
|
*/
|
|
|
priv.renderTable = function() {
|
|
priv.renderTable = function() {
|
|
|
//create table itself
|
|
//create table itself
|
|
|
- /// console.log('renderTable:: _data', _data);//TODO:DBG:RMME
|
|
|
|
|
|
|
+ // console.log('renderTable:: _data', _data);//TODO:DBG:RMME
|
|
|
/// console.log('renderTable:: _uiNode$Table', _uiNode$Table);//TODO:DBG:RMME
|
|
/// console.log('renderTable:: _uiNode$Table', _uiNode$Table);//TODO:DBG:RMME
|
|
|
|
|
|
|
|
//create the header which will later hold both sorting and filtering
|
|
//create the header which will later hold both sorting and filtering
|
|
@@ -3881,7 +3901,7 @@ function <?php echo $jsToogleFiltrProcesuFunctionName; ?>(n) {
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
<?php
|
|
<?php
|
|
|
- UI::setTitleJsTag($this->_acl->getRawLabel(100) . " - " . UI::getTitle());
|
|
|
|
|
|
|
+ UI::setTitle($this->_acl->getRawLabel(100) . " - " . UI::getTitle());
|
|
|
$out = ob_get_contents();
|
|
$out = ob_get_contents();
|
|
|
ob_end_clean();
|
|
ob_end_clean();
|
|
|
return $out;
|
|
return $out;
|