Updated toothpaste
This commit is contained in:
@@ -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")];
|
||||
|
||||
Reference in New Issue
Block a user