Skip to content
Snippets Groups Projects
Commit cdfa83e6 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

New text

Now getting only the current season's observations on the front page
parent 9acd00c2
Branches
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ var filteredObservations;
function cacheObservations()
{
//$.getJSON(settings.vipslogicProtocol + "://" + settings.vipslogicServerName + "/rest/observation/broadcast/list/" + settings.vipsOrganizationId, function( json ) {
$.getJSON("/vipslogicproxy/rest/observation/broadcast/list/" + settings.vipsOrganizationId, function( json ) {
$.getJSON("/vipslogicproxy/rest/observation/broadcast/list/" + settings.vipsOrganizationId + "?season=" + getCurrentYear(), function( json ) {
allObservations = json;
//console.log(allObservations);
filterObservations();
......
......@@ -75,6 +75,12 @@ function setMomentToMidnight(momentObj)
return momentObj.hour(0).minute(0).second(0).millisecond(0);
}
function getCurrentYear()
{
return getSystemTime().year();
}
/**
* Returns the computed CSS display of the element. Handling both IE
* and the normal browsers
......
No preview for this file type
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-13 15:02-0700\n"
"POT-Creation-Date: 2017-03-14 16:07-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -51,11 +51,7 @@ msgid "Observation was not quantified"
msgstr ""
#: templates/observations/detail.html:116
msgid "Location is hidden"
msgstr ""
#: templates/observations/detail.html:117
msgid "The observer has requested that the location is hidden"
msgid "Map view not available"
msgstr ""
#: templates/observations/index.html:25 templates/observations/index.html:28
......
No preview for this file type
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-13 15:02-0700\n"
"POT-Creation-Date: 2017-03-14 16:07-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -55,12 +55,8 @@ msgid "Observation was not quantified"
msgstr "Observasjonen ble ikke kvantifisert"
#: templates/observations/detail.html:116
msgid "Location is hidden"
msgstr "Plasseringen er skjult"
#: templates/observations/detail.html:117
msgid "The observer has requested that the location is hidden"
msgstr "Observatøren har bedt om at plasseringen skal være skjult"
msgid "Map view not available"
msgstr "Kartvisning ikke tilgjengelig"
#: templates/observations/index.html:25
#: templates/observations/index.html:28
......
No preview for this file type
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-13 15:02-0700\n"
"POT-Creation-Date: 2017-03-14 16:07-0700\n"
"PO-Revision-Date: 2016-10-27 11:26+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
......@@ -50,11 +50,7 @@ msgid "Observation was not quantified"
msgstr "观测没有定量化"
#: templates/observations/detail.html:116
msgid "Location is hidden"
msgstr ""
#: templates/observations/detail.html:117
msgid "The observer has requested that the location is hidden"
msgid "Map view not available"
msgstr ""
#: templates/observations/index.html:25 templates/observations/index.html:28
......
......@@ -113,9 +113,7 @@
function renderLocationIsHiddenMessage(){
document.getElementById("observationViewMap").parentNode.innerHTML =
"<h2>{% trans "Location is hidden" %}</h2>" +
"<p>{% trans "The observer has requested that the location is hidden" %}</p>" +
"<p><img class='img-responsive' src='{% static "observations/images/globe.png" %}'/></p>";
"<h2>{% trans "Map view not available" %}</h2>";
}
</script>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment