Skip to content

Commit 2990636

Browse files
committed
jQuery Upgrade, added minor debugging to the jQuery GUI
1 parent 25f3503 commit 2990636

File tree

3 files changed

+9
-21
lines changed

3 files changed

+9
-21
lines changed

gui/jquery/index.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function get_convo_id()
131131
To get your very own chatbot, visit <a href="http://www.program-o.com">program-o.com</a>!
132132
</div>
133133
<div id="urlwarning"><?php echo $display ?></div>
134-
<script type="text/javascript" src="jquery-1.3.min.js"></script>
134+
<script type="text/javascript" src="jquery-1.9.1.min.js"></script>
135135
<script type="text/javascript" >
136136
$(document).ready(function() {
137137
// put all your jQuery goodness in here.
@@ -147,7 +147,9 @@ function get_convo_id()
147147
var usersay = data.usersay;
148148
if (user != usersay) $('.usersay').text(usersay);
149149
$('.botsay').html(b);
150-
}, 'json');
150+
}, 'json').fail(function(xhr, textStatus, errorThrown){
151+
$('#urlwarning').html("Something went wrong! Error = " + errorThrown);
152+
});
151153
return false;
152154
});
153155
});

gui/jquery/jquery-1.3.min.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)