| | |
| | | }; |
| | | ResultsTable.prototype._editPlayerCallback = function(name, callback) { |
| | | var result = prompt('Podaj nowe inicjały gracza. Wyczyść pole, by go usunąć.', name); |
| | | if(result) { |
| | | callback(result); |
| | | } |
| | | }; |
| | | ResultsTable.prototype._editResultCallback = function(value, callback) { |
| | | var result = prompt('Podaj nową wartość:', value); |
| | | if(result) { |
| | | callback(result); |
| | | } |
| | | }; |
| | | ResultsTable.prototype.refresh = function() { |
| | | this.save(); |
| | |
| | | self.editResultCallback( |
| | | self.results[j][i], |
| | | function (value) { |
| | | if(value == null) return; |
| | | self.results[j][i] = value; |
| | | self.refresh(); |
| | | } |