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

Improved observation filtering

parent 683e466d
Branches
No related tags found
No related merge requests found
Showing
with 23 additions and 0 deletions
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -290,4 +290,27 @@ var sortObservationMessages = function(a,b) ...@@ -290,4 +290,27 @@ var sortObservationMessages = function(a,b)
return 0; return 0;
}; };
return 1; return 1;
}
var sortOrganisms = function(a,b)
{
var nameA = getLocalizedOrganismName(a);
var nameB = getLocalizedOrganismName(b);
return nameA < nameB ? -1 :
nameA > nameB ? 1 :
0;
}
function getMultipleSelectedValues(list)
{
var retVal = [];
for(var i=0; i<list.options.length;i++)
{
var opt = list.options[i];
if(opt.selected)
{
retVal.push(opt.value);
}
}
return retVal;
} }
\ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment