nobuttons parameter moet ook gelden voor grafieken 'Naar plaatje' knop

svn path=/Website/branches/v2017.1/; revision=34753
This commit is contained in:
Jos Groot Lipman
2017-07-26 14:16:58 +00:00
parent 4fd4d6a33e
commit 45a1783144

View File

@@ -160,7 +160,7 @@
// "axes[...]._ticks.0.formatter is null or not an object" krijg je namelijk // "axes[...]._ticks.0.formatter is null or not an object" krijg je namelijk
// https://bitbucket.org/cleonello/jqplot/issue/201/highlighter-plugin-causes-error-on-hover meldt min of meer hetzelfde // https://bitbucket.org/cleonello/jqplot/issue/201/highlighter-plugin-causes-error-on-hover meldt min of meer hetzelfde
FCLTHeader.Requires({ js: ["../Localscripts/jqPlot/dist/plugins/jqplot.pointLabels.js"]}); FCLTHeader.Requires({ js: ["../Localscripts/jqPlot/dist/plugins/jqplot.pointLabels.js"]});
} }
} }
if (mode == "list") if (mode == "list")
@@ -460,7 +460,9 @@ function fac_usrrap_list_graph (model, scf_params)
<% <%
var widget_height = getQParam("widget_height", null); var widget_height = getQParam("widget_height", null);
var mygraph_height = ((widget_height != null) ? parseInt(widget_height) : 500); var mygraph_height = ((widget_height != null) ? parseInt(widget_height) : 500);
var buttons = [ { icon: "palette.png", title: L("lcl_openimage"), action: "toImg()" } ]; var buttons = [];
if(!nobuttons)
var buttons = [ { icon: "palette.png", title: L("lcl_openimage"), action: "toImg()" } ];
IFRAMER_HEADER(model.records_title, buttons); IFRAMER_HEADER(model.records_title, buttons);
%> %>
<div id="myGraph" style="height:<%=mygraph_height%>px;" ></div> <div id="myGraph" style="height:<%=mygraph_height%>px;" ></div>