2 * This file is part of WolneLektury-Mobile, licensed under GNU Affero GPLv3 or later.
3 * Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
8 * @return Object literal singleton instance of MenuInterface
12 * @param asset Path to the asset (relative to assets dir)
13 * @param target Path to DB file (relative to app db files dir)
15 * @param win Success callback
16 * @param fail Error callback
18 setInfoButton: function(label, enabled, win, fail) {
19 if (enabled == false) enabled = "false";
20 else enabled = "true";