/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ function openTrackingInfoPage(code) { if (typeof code == "undefined" || code == null || code == "") { app.input.validate("#trackingcode"); return; } router.navigate("/track/" + code); } function addTrackingSuggestions() { $("#tracking-history-list ul").html(""); var history = getTrackingHistory(); if (history == false || history.length == 0) { $("#tracking-history-list ul").html('