fixed onclick binding
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
// All code in this file is licensed under the ISC license, provided in LICENSE.txt
|
// All code in this file is licensed under the ISC license, provided in LICENSE.txt
|
||||||
$('#update').click(function () {
|
$('#update').click(updateData);
|
||||||
updateData();
|
|
||||||
});
|
|
||||||
// jQuery event binder
|
// jQuery event binder
|
||||||
|
|
||||||
function updateData () {
|
function updateData () {
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<button id="update" class="btn btn-primary">Get data</button>
|
<button id="update" onclick="updateData()" class="btn btn-primary">Get data</button>
|
||||||
<button id="download" class="btn btn-primary">Download</button>
|
<button id="download" class="btn btn-primary">Download</button>
|
||||||
<button id="debug" class="btn btn-danger">DEBUG</button>
|
<button id="debug" class="btn btn-danger">DEBUG</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user