diff --git a/public/js/wn/meta.js b/public/js/wn/meta.js index e02e14de90..cdcdcdbb4a 100644 --- a/public/js/wn/meta.js +++ b/public/js/wn/meta.js @@ -57,10 +57,8 @@ $.extend(wn.meta, { if(locals.DocType[doctype].default_print_format) print_format_list.push(locals.DocType[doctype].default_print_format) - print_format_list.push("Standard"); - - var print_formats = wn.model.get("Print Format", {doc_type: doctype}) - .sort(function(a, b) { return (a > b) ? 1 : -1; }); + var print_formats = ["Standard"].concat(wn.model.get("Print Format", + {doc_type: doctype}).sort(function(a, b) { return (a > b) ? 1 : -1; })); $.each(print_formats, function(i, d) { if(!in_list(print_format_list, d.name)) print_format_list.push(d.name);