FSN#35094 Altijd automatisch refresh-icon in resultset

svn path=/Website/trunk/; revision=31584
This commit is contained in:
Jos Groot Lipman
2016-11-21 10:09:09 +00:00
parent a4a634e814
commit d63b70dd3d

View File

@@ -608,6 +608,17 @@ function __rsProcessResultset(processParams) // processParams wordt blind aan al
}
buttons = this.buttons || [];
if (!noPrint && Request.ServerVariables("REQUEST_METHOD") == "GET") // Alleen dan auto-refreshknop
{
var found = false;
for (var i=0; i < buttons.length; i++)
{
if (buttons[i].title == L("lcl_refresh") || buttons[i].action == "FcltMgr.reload()")
found = true;
}
if (!found)
buttons.push({ icon: "fa-refresh", title: L("lcl_refresh"), action: "FcltMgr.reload()", id: "btn_scf_refresh" });
}
if (!noPrint)
{
buttons = buttons.concat([ { icon: "fa-print", title: L("lcl_print_table"), action: "doOutput(1)" } ]);
@@ -1213,7 +1224,7 @@ function __rsMakeTableRow(oRs, oRsFlexData, cnt, anyMultiActions, noFlexResult)
if (useHamburger && hasInlineActions)
{
// TODO: If clause nog verbeteren
if (false && actionbits.substr(1) == noActionBit.substr(1))
if (actionbits.substr(1) == noActionBit.substr(1))
{
appender += "<td></td>";
}