padding:1ex
}
-.alert input[type=text], .alert input[type=password] {
+.alert input[type=text], .alert input[type=number], .alert input[type=password] {
border-radius:none;
box-sizing:border-box;
min-height:1.5rem;
global.myAlert.l10n = _;
- global.myPrompt = function (msg, callback, defaultText) {
+ global.myPrompt = function (msg, callback, defaultText, options) {
if (!divAlert) {
prepare();
}
divAlertContent.textContent = msg;
divAlertInput.style.display = "";
- divAlertInput.firstChild.value = defaultText || "";
+ alertInput.value = defaultText || "";
+ alertInput.type = (options && options.type) || "text";
divAlertConfirm.style.display = "none";
divAlertButton.style.display = "none";
divAlertCallback = callback;
}]);
}
},
- row.lastChild.firstChild.textContent
+ row.lastChild.firstChild.textContent,
+ {type: "number"}
);
};
}
}]);
}
},
- row.lastChild.firstChild.textContent
+ row.lastChild.firstChild.textContent,
+ {type: "number"}
);
};
}