mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-17 21:26:13 -04:00
toolbar now saves its state for radio buttons.
This commit is contained in:
11
UI/Instrumentation/StringFormat.js
Normal file
11
UI/Instrumentation/StringFormat.js
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
String.prototype.format = function () {
|
||||
var args = arguments;
|
||||
return this.replace(/{(\d+)}/g, function (match, number) {
|
||||
if (typeof args[number] !== 'undefined') {
|
||||
return args[number];
|
||||
} else {
|
||||
return match;
|
||||
}
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user