|
|
@ -75,6 +75,11 @@ |
|
|
|
refreshKrumoState(); |
|
|
|
refreshKrumoState(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleAjaxError = function(event, jqxhr, settings, exception) { |
|
|
|
|
|
|
|
$('div.output').html("<em>Error occured while posting your code.</em>"); |
|
|
|
|
|
|
|
refreshKrumoState(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
initializeAce = function() { |
|
|
|
initializeAce = function() { |
|
|
|
var PhpMode, code; |
|
|
|
var PhpMode, code; |
|
|
@ -120,6 +125,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
$(function() { |
|
|
|
$(function() { |
|
|
|
$(document).ready(initializeAce); |
|
|
|
$(document).ready(initializeAce); |
|
|
|
|
|
|
|
$(document).ajaxError(handleAjaxError); |
|
|
|
|
|
|
|
|
|
|
|
$('form').submit(handleSubmit); |
|
|
|
$('form').submit(handleSubmit); |
|
|
|
}); |
|
|
|
}); |
|
|
|