|
@@ -1269,6 +1269,7 @@ class TableAjax extends ViewAjax {
|
|
|
_popoverCell.data('col', 'rowFunctions');
|
|
_popoverCell.data('col', 'rowFunctions');
|
|
|
_popoverCell.empty();
|
|
_popoverCell.empty();
|
|
|
funcListNode = $('<ul class="list-unstyled popoverRowFunctions"></ul>').appendTo(_popoverCell);
|
|
funcListNode = $('<ul class="list-unstyled popoverRowFunctions"></ul>').appendTo(_popoverCell);
|
|
|
|
|
+
|
|
|
moreFunctions.forEach(function(funcName) {
|
|
moreFunctions.forEach(function(funcName) {
|
|
|
var funcItemNode = $('<li></li>').appendTo(funcListNode),
|
|
var funcItemNode = $('<li></li>').appendTo(funcListNode),
|
|
|
funObj = rowFunctions[funcName],
|
|
funObj = rowFunctions[funcName],
|
|
@@ -1277,6 +1278,19 @@ class TableAjax extends ViewAjax {
|
|
|
funcNode.addClass('func_name-' + funcName);
|
|
funcNode.addClass('func_name-' + funcName);
|
|
|
funcItemNode.append(funcNode);
|
|
funcItemNode.append(funcNode);
|
|
|
});
|
|
});
|
|
|
|
|
+ { // TODO: id namesapce is AntAcl [ and has ref fields or back ref ]
|
|
|
|
|
+ var funcItemNode = $('<li></li>').appendTo(funcListNode)
|
|
|
|
|
+ var funObj = {
|
|
|
|
|
+ ico: 'glyphicon glyphicon-random',
|
|
|
|
|
+ label: 'przeglądaj powiązania',
|
|
|
|
|
+ href: 'index.php?_route=RefGraph&namespace=' + priv.options.namespace + '&primaryKey=' + rowPK,
|
|
|
|
|
+ // onclick: function (e) { // TODO: open in
|
|
|
|
|
+ // console.log('TODO: przeglądaj powiązania')
|
|
|
|
|
+ // }
|
|
|
|
|
+ }
|
|
|
|
|
+ var funcNode = p5UI_TableAjax_generateFunctionNode(funObj, rowPK, { ico: true, label: true })
|
|
|
|
|
+ funcItemNode.append(funcNode);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
_popoverCell.append('<div class="popoverCellContent" style="white-space:normal"></div>');
|
|
_popoverCell.append('<div class="popoverCellContent" style="white-space:normal"></div>');
|
|
|
|
|
|