Tengo un dialog armado que funciona bien en chrome y firefox, pero en IE me da error . La linea es "class: 'leftButton',"
Detalles de error de página web
Mensaje: Expected identifier, string or number
Línea: 143
Carácter: 6
Código: 0
Código:
function init() {
$(":input").change(formWasChanged);
$("[name=cancelForm]").click(cancelFormAlert);
$("#confirmCancelDialog").dialog(
{
autoOpen: false,
bgiframe: true,
resizable: false,
height: 250,
width: 450,
modal: true,
overlay: {
backgroundColor: '#000000',
opacity: 0.5
},
buttons: {
NoCancelar:
{
text: 'No realizar',
class: 'leftButton',
click : function()
{
$(this).dialog('close');
}
},
Cancelar:
{
text: 'Realizar la Cancelación',
class: 'leftButton',
click : function()
{
$(this).dialog('close');
var objMC = document.getElementById('motivoCancel');
/*
if (objMC.value.length<4)
{
alert('Debe completar una causa');
}
else
{
*/
form.form_motivoCancel.value = objMC.value;
form.accion.value='cancel';
form.submit();
//}
}
}
}
});
}
function formWasChanged() {
formChanged = true;
}
function cancelFormAlert()
{
$("#confirmCancelDialog").dialog("open");
}