import_functions: add URL_TYPES property

This commit is contained in:
Laurent Monin 2015-06-12 21:28:24 +02:00
parent c8ee328d78
commit 7c3a39c79d

View file

@ -61,6 +61,13 @@ var MBReleaseImportHelper = (function() {
// --------------------------------------- publics ----------------------------------------- //
var url_types = {
purchase_for_download: 74,
download_for_free: 75,
stream_for_free: 85,
license: 301
}
// compute HTML of search link
function fnBuildSearchLink(release) {
@ -203,8 +210,9 @@ var MBReleaseImportHelper = (function() {
// ---------------------------------- expose publics here ------------------------------------ //
return {
buildSearchLink: fnBuildSearchLink,
buildFormHTML: fnBuildFormHTML,
buildFormParameters: fnBuildFormParameters
};
buildSearchLink: fnBuildSearchLink,
buildFormHTML: fnBuildFormHTML,
buildFormParameters: fnBuildFormParameters,
URL_TYPES: url_types
};
})();