Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
code and docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkroorda committed Jan 11, 2017
1 parent 38588b6 commit 85abeb6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
14 changes: 13 additions & 1 deletion static/js/hebrew.js
Original file line number Diff line number Diff line change
Expand Up @@ -1732,6 +1732,9 @@ function HebrewSettings() {
for (var fld in wb.vs.ddata()) {
this[fld].apply()
}
for (v in versions) {
set_csv(v, wb.vs.mr(), wb.vs.qw(), wb.vs.iid())
}
}
}

Expand All @@ -1745,6 +1748,9 @@ function HebrewSetting(fld) {
wb.vs.dstatesv(vals)
wb.vs.addHist()
that.applysetting()
for (v in versions) {
set_csv(v, wb.vs.mr(), wb.vs.qw(), wb.vs.iid())
}
})
this.apply = function() {
var val = wb.vs.ddata()[this.name]
Expand Down Expand Up @@ -2428,6 +2434,12 @@ function set_csv(vr, mr, qw, iid, extra) {
var csvctrl = $('#csv'+task+'_lnk_'+vr+'_'+qw)
if (task != 'b' || (tp != 'txt_p' && tp != 'txt_il')) {
var ctit = csvctrl.attr('ftitle')
if (extra == undefined) {
extra = csvctrl.attr('extra')
}
else {
csvctrl.attr('extra', extra)
}
csvctrl.attr('href', wb.vs.csv_url(vr, mr, qw, iid, tp, extra))
csvctrl.attr('title', vr+'_'+style[qw]['t']+'_'+iid+'_'+extra+'_'+tp_labels[tp]+'.csv'+ctit)
csvctrl.show()
Expand Down Expand Up @@ -2631,7 +2643,7 @@ function ViewState(init, pref) {
}
this.csv_url = function(vr, mr, qw, iid, tp, extra) {
var vars = '?version='+vr+'&mr='+mr+'&qw='+qw+'&iid='+iid+'&tp='+tp+'&extra='+extra
var data = this.data['hebrewdata']['']
var data = wb.vs.ddata()
for (var name in data) {
vars += '&'+name+'='+data[name]
}
Expand Down
12 changes: 12 additions & 0 deletions views/default/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ <h2>{{=T('Plans')}}</h2>

<h1>{{=T('News')}}</h1>

<div>
<h2>2017-01-11</h2>
<dl>
<dt>Data export (csv)</dt>
<dd><p>With the data export button you can export results/occurrences as csv, with fields as you have selected in the legend.
But your selection was not honoured immediately, only after a refresh.
That has been fixed.
</p>
</dd>
</dl>
</div>

<div>
<h2>2016-12-17</h2>
<dl>
Expand Down

0 comments on commit 85abeb6

Please sign in to comment.