Skip to content

Commit

Permalink
Memperbaiki Delete Alert Javascript.
Browse files Browse the repository at this point in the history
  • Loading branch information
dedediana committed Sep 30, 2017
1 parent 5d6389a commit 8ae6995
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 31 deletions.
23 changes: 12 additions & 11 deletions web/DistanceMatrix/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -96,44 +96,45 @@
<td>Universitas Kristen Maranatha</td>
<td>Politeknik Negeri Bandung</td>
<td>2.6</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()"> Delete </a> </td>
</tr>

<tr>
<td>Politeknik Negeri Bandung</td>
<td>Bosscha Observatory</td>
<td>11.4</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()"> Delete </a> </td>
</tr>

<tr>
<td>Bosscha Observatory</td>
<td>Maribaya Waterfall</td>
<td>9.1</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()"> Delete </a> </td>
</tr>

<tr>
<td>Maribaya Waterfall</td>
<td>Saung Angklung Udjo</td>
<td>16.1</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()"> Delete </a> </td>
</tr>


<tr>
<td>Saung Angklung Udjo</td>
<td>Paris Van Java</td>
<td>8.1</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()"> Delete </a> </td>
</tr>

<script>
function myFunction() {
alert("Delete Sucsess");
}
</script>

<script type="text/javascript" language="JavaScript">
function konfirmasi()
{
tanya = confirm("Anda Yakin Akan Menghapus Data ?");
if (tanya == true) return true;
else return false;
}</script>
</tbody>
</table>
</div> <!--kotak-distance-->
Expand Down
22 changes: 12 additions & 10 deletions web/EstimationTime/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -93,31 +93,31 @@
<td>Politeknik Negeri Bandung</td>
<td>2.6</td>
<td>3.9 m</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()"> Delete </a> </td>
</tr>

<tr>
<td>Politeknik Negeri Bandung</td>
<td>Bosscha Observatory</td>
<td>11.4</td>
<td>17.1 m</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()"> Delete </a> </td>
</tr>

<tr>
<td>Bosscha Observatory</td>
<td>Maribaya Waterfall</td>
<td>9.1</td>
<td>13.65 m</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()"> Delete </a> </td>
</tr>

<tr>
<td>Maribaya Waterfall</td>
<td>Saung Angklung Udjo</td>
<td>16.1</td>
<td>24.15 m</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()"> Delete </a> </td>
</tr>


Expand All @@ -126,14 +126,16 @@
<td>Paris Van Java</td>
<td>8.1</td>
<td>12.15 m</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()"> Delete </a> </td>
</tr>

<script>
function myFunction() {
alert("Delete Sucsess");
}
</script>
<script type="text/javascript" language="JavaScript">
function konfirmasi()
{
tanya = confirm("Anda Yakin Akan Menghapus Data ?");
if (tanya == true) return true;
else return false;
}</script>

</tbody>
</table>
Expand Down
22 changes: 12 additions & 10 deletions web/TransportationMode/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -83,43 +83,45 @@
<td>001</td>
<td>Car</td>
<td>50 km/jam</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()" href="#"> Delete </a> </td>

</tr>

<tr>
<td>002</td>
<td>Motorcycle</td>
<td>60 km/jam</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()" href="#"> Delete </a> </td>
</tr>

<tr>
<td>003</td>
<td>Bus</td>
<td>40 km/jam</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()" href="#"> Delete </a> </td>
</tr>

<tr>
<td>004</td>
<td>Wagon</td>
<td>150 km/jam</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()" href="#"> Delete </a> </td>
</tr>

<tr>
<td>004</td>
<td>Working</td>
<td>40 km/jam</td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="myFunction()"> Delete </a> </td>
<td> <a class="action" href="edit.jsp">Edit </a> <a class="action2" onclick="return konfirmasi()" href="#"> Delete </a> </td>
</tr>

<script>
function myFunction() {
alert("Delete Sucsess");
}
</script>
<script type="text/javascript" language="JavaScript">
function konfirmasi()
{
tanya = confirm("Anda Yakin Akan Menghapus Data ?");
if (tanya == true) return true;
else return false;
}</script>


</tbody>
Expand Down

0 comments on commit 8ae6995

Please sign in to comment.