|
@@ -11,6 +11,8 @@ Lib::loadClass('ProcesHelper');
|
|
|
Lib::loadClass('Router');
|
|
Lib::loadClass('Router');
|
|
|
Lib::loadClass('Route_UrlAction');
|
|
Lib::loadClass('Route_UrlAction');
|
|
|
|
|
|
|
|
|
|
+// TODO: change all links: MENU_INIT=VIEWTABLE_AJAX&ZASOB_ID={idZasob} to _route=ViewTableAjax&typeName=p5_default_db:{tableName}
|
|
|
|
|
+
|
|
|
class TableAjax extends ViewAjax {
|
|
class TableAjax extends ViewAjax {
|
|
|
|
|
|
|
|
private $_cnf = '';// Column
|
|
private $_cnf = '';// Column
|
|
@@ -3071,8 +3073,8 @@ var p5UI_TableAjax_generateFunctionNode = function(funObj, rowPK, props) {
|
|
|
success: function(req){
|
|
success: function(req){
|
|
|
if (_.get(req, 'data.tbl_id') > 0) {
|
|
if (_.get(req, 'data.tbl_id') > 0) {
|
|
|
var addHtml = '';
|
|
var addHtml = '';
|
|
|
- for(var i in req.data.items){
|
|
|
|
|
- var url = 'index.php?MENU_INIT=VIEWTABLE_AJAX';
|
|
|
|
|
|
|
+ for (var i in req.data.items) {
|
|
|
|
|
+ var url = 'index.php?MENU_INIT=VIEWTABLE_AJAX';// TODO: change to _route=ViewTableAjax&typeName=p5_default_db:{tblName}
|
|
|
url += '&ZASOB_ID=' + req.data.tbl_id;
|
|
url += '&ZASOB_ID=' + req.data.tbl_id;
|
|
|
url += '&f_' + req.data.fld_name + '=' + req.data.items[i].id;
|
|
url += '&f_' + req.data.fld_name + '=' + req.data.items[i].id;
|
|
|
url += '&_hash=' + Math.random().toString(36).substring(2);
|
|
url += '&_hash=' + Math.random().toString(36).substring(2);
|
|
@@ -3662,7 +3664,7 @@ function <?php echo $jsToogleFiltrProcesuFunctionName; ?>(n) {
|
|
|
function _viewProcesInitListItem(pInitId, gotoIds, pInitList) {
|
|
function _viewProcesInitListItem(pInitId, gotoIds, pInitList) {
|
|
|
var label = pInitList[pInitId];
|
|
var label = pInitList[pInitId];
|
|
|
var jsInfo = "window.open('procesy5.php?task=PROCES_VIEW_LIST&id_proces=" + pInitId + "&HIDE_PANEL=0&show_big_img=1&group_stanowiska=1');return false;";
|
|
var jsInfo = "window.open('procesy5.php?task=PROCES_VIEW_LIST&id_proces=" + pInitId + "&HIDE_PANEL=0&show_big_img=1&group_stanowiska=1');return false;";
|
|
|
- var out = '<a href="index.php?FUNCTION_INIT=MENU_SELECT_PROCES&_action=setPermsByProces&id_proces=' + pInitId + '&MENU_INIT=VIEWTABLE_AJAX&ZASOB_ID=<?php echo $this->_zasobID; ?>" title="' + "{" + pInitId + "} " + label + '">';
|
|
|
|
|
|
|
+ var out = '<a href="index.php?FUNCTION_INIT=MENU_SELECT_PROCES&_action=setPermsByProces&id_proces=' + pInitId + '&MENU_INIT=VIEWTABLE_AJAX&ZASOB_ID=<?php echo $this->_zasobID; ?>" title="' + "{" + pInitId + "} " + label + '">';// TODO: change to _route=ViewTableAjax&typeName=p5_default_db:{tblName}
|
|
|
out += ' <i class="glyphicon glyphicon-info-sign"';
|
|
out += ' <i class="glyphicon glyphicon-info-sign"';
|
|
|
out += ' onclick="' + jsInfo + '"';
|
|
out += ' onclick="' + jsInfo + '"';
|
|
|
out += ' style="color:#aaa;"';
|
|
out += ' style="color:#aaa;"';
|
|
@@ -3676,7 +3678,7 @@ function <?php echo $jsToogleFiltrProcesuFunctionName; ?>(n) {
|
|
|
var label = pInitList[gotoId];
|
|
var label = pInitList[gotoId];
|
|
|
var jsInfo = "window.open('procesy5.php?task=PROCES_VIEW_LIST&id_proces=" + gotoId + "&HIDE_PANEL=0&show_big_img=1&group_stanowiska=1');return false;";
|
|
var jsInfo = "window.open('procesy5.php?task=PROCES_VIEW_LIST&id_proces=" + gotoId + "&HIDE_PANEL=0&show_big_img=1&group_stanowiska=1');return false;";
|
|
|
var out = '';
|
|
var out = '';
|
|
|
- out += '<a href="index.php?FUNCTION_INIT=MENU_SELECT_PROCES&_action=setPermsByProces&id_proces=' + gotoId + '&MENU_INIT=VIEWTABLE_AJAX&ZASOB_ID=<?php echo $this->_zasobID; ?>" title="' + "{" + gotoId + "} " + label + '">';
|
|
|
|
|
|
|
+ out += '<a href="index.php?FUNCTION_INIT=MENU_SELECT_PROCES&_action=setPermsByProces&id_proces=' + gotoId + '&MENU_INIT=VIEWTABLE_AJAX&ZASOB_ID=<?php echo $this->_zasobID; ?>" title="' + "{" + gotoId + "} " + label + '">';// TODO: change to _route=ViewTableAjax&typeName=p5_default_db:{tblName}
|
|
|
out += ' <span style="padding:10px;"></span>';
|
|
out += ' <span style="padding:10px;"></span>';
|
|
|
out += ' <i class="glyphicon glyphicon-arrow-right" style="color:#aaa"></i>';
|
|
out += ' <i class="glyphicon glyphicon-arrow-right" style="color:#aaa"></i>';
|
|
|
out += ' <i class="glyphicon glyphicon-info-sign"';
|
|
out += ' <i class="glyphicon glyphicon-info-sign"';
|
|
@@ -3692,7 +3694,7 @@ function <?php echo $jsToogleFiltrProcesuFunctionName; ?>(n) {
|
|
|
var label = pInitList[gotoLvl2Id];
|
|
var label = pInitList[gotoLvl2Id];
|
|
|
var jsInfo = "window.open('procesy5.php?task=PROCES_VIEW_LIST&id_proces=" + gotoLvl2Id + "&HIDE_PANEL=0&show_big_img=1&group_stanowiska=1');return false;";
|
|
var jsInfo = "window.open('procesy5.php?task=PROCES_VIEW_LIST&id_proces=" + gotoLvl2Id + "&HIDE_PANEL=0&show_big_img=1&group_stanowiska=1');return false;";
|
|
|
var out = '';
|
|
var out = '';
|
|
|
- out += '<a href="index.php?FUNCTION_INIT=MENU_SELECT_PROCES&_action=setPermsByProces&id_proces=' + gotoLvl2Id + '&MENU_INIT=VIEWTABLE_AJAX&ZASOB_ID=<?php echo $this->_zasobID; ?>" title="' + "{" + gotoLvl2Id + "} " + label + '">';
|
|
|
|
|
|
|
+ out += '<a href="index.php?FUNCTION_INIT=MENU_SELECT_PROCES&_action=setPermsByProces&id_proces=' + gotoLvl2Id + '&MENU_INIT=VIEWTABLE_AJAX&ZASOB_ID=<?php echo $this->_zasobID; ?>" title="' + "{" + gotoLvl2Id + "} " + label + '">';// TODO: change to _route=ViewTableAjax&typeName=p5_default_db:{tblName}
|
|
|
out += ' <span style="padding:20px;"></span>';
|
|
out += ' <span style="padding:20px;"></span>';
|
|
|
out += ' <i class="glyphicon glyphicon-arrow-right" style="color:#aaa"></i>';
|
|
out += ' <i class="glyphicon glyphicon-arrow-right" style="color:#aaa"></i>';
|
|
|
out += ' <i class="glyphicon glyphicon-info-sign"';
|
|
out += ' <i class="glyphicon glyphicon-info-sign"';
|