Updated toothpaste

This commit is contained in:
Gitea
2019-07-19 13:56:37 +02:00
parent 20807fdacc
commit e24bdf5317
4 changed files with 52 additions and 49 deletions

View File

@@ -69,8 +69,8 @@
viewModel.selectedTypeName = ko.observable();
viewModel.selectedTypeIndex = ko.observable();
viewModel.selectedTypeName(viewModel.types[0].type);
viewModel.selectedTypeIndex(0);
viewModel.selectedTypeName(viewModel.types[31].type);
viewModel.selectedTypeIndex(31);
$("#pasteButton").on("click", function(){
$.ajax({
@@ -85,11 +85,11 @@
console.log(data);
if(data.id !== null){
window.location = "./"+data.id+"/";
window.location = "./"+data.id+"/";
}
}
})
}) ;
});
$("#typeList").bind( "click" , function(element){
selectedType = viewModel.types[$(element.target).attr("typeindex")];