ajax logging is not working on site. The log message is now added as part of the post. However, it is added by using jQuery, so it may not work. Consequently, there is a default value to help narrow down the problem.
git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@841 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -26,16 +26,6 @@ Configure::write('debug', '0');
|
|||||||
<script type="text/javascript"><!--
|
<script type="text/javascript"><!--
|
||||||
var debugmsg = new Array();
|
var debugmsg = new Array();
|
||||||
|
|
||||||
if ($().accordion)
|
|
||||||
debugmsg.push('accordion loaded');
|
|
||||||
else
|
|
||||||
debugmsg.push('accordion NOT loaded');
|
|
||||||
|
|
||||||
if ($().ajaxForm)
|
|
||||||
debugmsg.push('ajaxForm loaded');
|
|
||||||
else
|
|
||||||
debugmsg.push('ajaxForm NOT loaded');
|
|
||||||
|
|
||||||
// prepare the form when the DOM is ready
|
// prepare the form when the DOM is ready
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
debugmsg.push('doc ready1');
|
debugmsg.push('doc ready1');
|
||||||
@@ -305,6 +295,11 @@ if (!empty($movein))
|
|||||||
'type' => 'hidden',
|
'type' => 'hidden',
|
||||||
'value' => $customer['id']));
|
'value' => $customer['id']));
|
||||||
|
|
||||||
|
echo $form->input("Message.text",
|
||||||
|
array('id' => 'message-text',
|
||||||
|
'type' => 'hidden',
|
||||||
|
'value' => 'not set'));
|
||||||
|
|
||||||
/* echo '<fieldset CLASS="invoice">' . "\n"; */
|
/* echo '<fieldset CLASS="invoice">' . "\n"; */
|
||||||
/* echo ' <legend>Invoice</legend>' . "\n"; */
|
/* echo ' <legend>Invoice</legend>' . "\n"; */
|
||||||
|
|
||||||
@@ -353,11 +348,35 @@ Configure::write('debug', '0');
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript"><!--
|
<script type="text/javascript"><!--
|
||||||
|
$('#message-text').val('javascript working');
|
||||||
|
|
||||||
|
if (typeof(jQuery) != 'undefined')
|
||||||
|
debugmsg.push('jQuery loaded');
|
||||||
|
else
|
||||||
|
debugmsg.push('jQuery NOT loaded');
|
||||||
|
|
||||||
|
if ($().accordion)
|
||||||
|
debugmsg.push('accordion loaded');
|
||||||
|
else
|
||||||
|
debugmsg.push('accordion NOT loaded');
|
||||||
|
|
||||||
|
if ($().ajaxForm)
|
||||||
|
debugmsg.push('ajaxForm loaded');
|
||||||
|
else
|
||||||
|
debugmsg.push('ajaxForm NOT loaded');
|
||||||
|
|
||||||
|
var eatt = debugmsg;
|
||||||
|
eatt.push('early attempt');
|
||||||
|
$('#message-text').val(eatt.join("\n "));
|
||||||
|
|
||||||
$.fn.removeCol = function(col){
|
$.fn.removeCol = function(col){
|
||||||
if(!col){ col = 1; }
|
if(!col){ col = 1; }
|
||||||
$('tr td:nth-child('+col+'), tr th:nth-child('+col+')', this).remove();
|
$('tr td:nth-child('+col+'), tr th:nth-child('+col+')', this).remove();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
eatt.push('early attempt2');
|
||||||
|
$('#message-text').val(eatt.join("\n "));
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
debugmsg.push('doc ready2');
|
debugmsg.push('doc ready2');
|
||||||
debugmsg.push('make transaction-stamp datepicker');
|
debugmsg.push('make transaction-stamp datepicker');
|
||||||
@@ -469,6 +488,7 @@ Configure::write('debug', '0');
|
|||||||
);
|
);
|
||||||
|
|
||||||
//$('#debug').html(debugmsg.join('<BR>'));
|
//$('#debug').html(debugmsg.join('<BR>'));
|
||||||
|
$('#message-text').val(debugmsg.join("\n "));
|
||||||
});
|
});
|
||||||
--></script>
|
--></script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user