- Code: Select all
function block__custom_javascripts(){
echo '<script src="' . DATAFACE_SITE_URL . '/javascript/submithandler.js" type="text/javascript" language="javascript"></script>';
}
This file includes the javascript code that needs to use JQuery framework and looks like the following:
- Code: Select all
jQuery(document).ready(function($){
$("input[type='submit']").click(function(){
$(this).attr("disabled","disabled");
$(this).closest("form").submit();
});
});
This javascript file(/javascript/submithandler.js) is available while listing/viewing/editing records. However, the following javascript code is NOT available when listing records:
- Code: Select all
<script type="text/javascript" src="/xataface/js/jquery-ui.packed.js"></script>
It then generate the javascirpt error looking like the following:
Can somebody fix this? My version is 1.2.2 1616. Thanks.