Fix: javascript content must be in utf8
This commit is contained in:
parent
4ef58f0f5c
commit
58a5a866f3
@ -1555,7 +1555,7 @@ class Form
|
|||||||
$sql .= " WHERE active = 1";
|
$sql .= " WHERE active = 1";
|
||||||
|
|
||||||
dol_syslog("Form::select_propal_statut sql=".$sql);
|
dol_syslog("Form::select_propal_statut sql=".$sql);
|
||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
print '<select class="flat" name="propal_statut">';
|
print '<select class="flat" name="propal_statut">';
|
||||||
@ -1695,15 +1695,15 @@ class Form
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Show a confirmation HTML form or AJAX popup
|
* Show a confirmation HTML form or AJAX popup
|
||||||
* \param page page Url of page to call if confirmation is OK
|
* @param page Url of page to call if confirmation is OK
|
||||||
* \param title title
|
* @param title title
|
||||||
* \param question question
|
* @param question question
|
||||||
* \param action action
|
* @param action action
|
||||||
* \param formquestion an array with forms complementary inputs
|
* @param formquestion an array with forms complementary inputs
|
||||||
* \param selectedchoice "" or "no" or "yes"
|
* @param selectedchoice "" or "no" or "yes"
|
||||||
* \param useajax 0=No, 1=Yes, 2=Yes but submit page with &confirm=no if choice is No
|
* @param useajax 0=No, 1=Yes, 2=Yes but submit page with &confirm=no if choice is No
|
||||||
* \param string 'ajax' if a confirm ajax popup is shown, 'html' if it's an html form
|
* @return string 'ajax' if a confirm ajax popup is shown, 'html' if it's an html form
|
||||||
*/
|
*/
|
||||||
function form_confirm($page, $title, $question, $action, $formquestion='', $selectedchoice="", $useajax=0)
|
function form_confirm($page, $title, $question, $action, $formquestion='', $selectedchoice="", $useajax=0)
|
||||||
{
|
{
|
||||||
@ -1773,7 +1773,7 @@ class Form
|
|||||||
|
|
||||||
// New code using jQuery only
|
// New code using jQuery only
|
||||||
print '<div id="dialog-confirm" title="'.dol_escape_htmltag($title).'">';
|
print '<div id="dialog-confirm" title="'.dol_escape_htmltag($title).'">';
|
||||||
print img_help('','').' '.$more.$question;
|
print img_help('','').' '.$more.$question;
|
||||||
print '</div>'."\n";
|
print '</div>'."\n";
|
||||||
print '<script type="text/javascript">
|
print '<script type="text/javascript">
|
||||||
var choice=\'ko\';
|
var choice=\'ko\';
|
||||||
@ -1789,11 +1789,11 @@ class Form
|
|||||||
'.($pageno?'if (choice == \'ko\') location.href=\''.$pageno.'\';':'').'
|
'.($pageno?'if (choice == \'ko\') location.href=\''.$pageno.'\';':'').'
|
||||||
},
|
},
|
||||||
buttons: {
|
buttons: {
|
||||||
\''.dol_escape_js($langs->trans("Yes")).'\': function() {
|
\''.dol_escape_js($langs->transnoentities("Yes")).'\': function() {
|
||||||
choice=\'ok\';
|
choice=\'ok\';
|
||||||
jQuery(this).dialog(\'close\');
|
jQuery(this).dialog(\'close\');
|
||||||
},
|
},
|
||||||
\''.dol_escape_js($langs->trans("No")).'\': function() {
|
\''.dol_escape_js($langs->transnoentities("No")).'\': function() {
|
||||||
choice=\'ko\';
|
choice=\'ko\';
|
||||||
jQuery(this).dialog(\'close\');
|
jQuery(this).dialog(\'close\');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user