-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjavascript_for_website.php
52 lines (50 loc) · 1.32 KB
/
javascript_for_website.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/*
* This is where all the javascript goes when I clean up the view files, then it will be put inside another file and used
* I just put it here so I know what it's for and where it goes. This file is not linked anywhere.
*/
<script>
$(function()
{
$('#addguide').on("submit", function()
{
$.ajax({
url: $(this).attr('action'),
type: $(this).attr('method'),
data: $(this).serialize(),
success: function(data),
{
if(data.success)
{
location.href = "<?php echo ADMIN_SURL; ?>";
}
else
{
$('.error_message').html(data.error + alert_close).show();
}
$('.ajloading').hide();
}, error: function(data)
{
$('.ajloading').hide();
}
});
return false;
});
});
</script>
<script>
$(function ()
{
$("#bitcoindecrement").click(function ()
{
$("input#withdrawbitcoinfee").val($("input#withdrawbitcoin").val());
});
});
$(function ()
{
$("#bitcoinincrement").click(function ()
{
$("input#withdrawbitcoinfee").val($("input#withdrawbitcoin").val());
});
});
</script>