Improve install message for MBClassic plugins

This commit is contained in:
Eric Reed 2013-06-19 11:00:31 -04:00
parent 151eb6bb3e
commit 7f9a81e4d6

View File

@ -81,7 +81,15 @@
} else {
$("#btnInstallDiv", page).hide();
$("#pSelectVersion", page).hide();
$("#nonServerMsg", page).html("This plugin must be installed from " + pkg.targetSystem).show();
var msg = "This plugin must be installed from ";
switch (pkg.targetSystem) {
case "MBClassic":
msg += "the MBClassic Configurator";
break;
default:
msg += pkg.targetSystem;
}
$("#nonServerMsg", page).html(msg).show();
}
if (pkg.shortDescription) {