diff --git a/core/marco_abajo.php b/core/marco_abajo.php
index 3bf8575ae..f6f851905 100755
--- a/core/marco_abajo.php
+++ b/core/marco_abajo.php
@@ -205,49 +205,31 @@
-
-
- ver_navegacion_izquierda_responsive();
- ';
- ?>
-
- $(window).load(function(){ $("#myModalElementoFormulario").modal("show"); }); ';
- if (@$popup_activo=="FormularioBotones")
- echo '';
- if (@$popup_activo=="FormularioDiseno")
- echo '';
- if (@$popup_activo=="FormularioAcciones")
- echo '';
- if (@$popup_activo=="InformeAcciones")
- echo '';
- if (@$popup_activo=="InformeCampos")
- echo '';
- if (@$popup_activo=="InformeTablas")
- echo '';
- if (@$popup_activo=="InformeCondiciones")
- echo '';
- //Habilita pesatanas activas en el popup activo
- if (@$pestana_activa_editor=="eventos_objeto-tab")
- echo '';
- ?>
+ echo '';
+
+ // Habilita el popup activo
+ if (@$popup_activo=="FormularioCampos") echo '';
+ if (@$popup_activo=="FormularioBotones") echo '';
+ if (@$popup_activo=="FormularioDiseno") echo '';
+ if (@$popup_activo=="FormularioAcciones")echo '';
+ if (@$popup_activo=="InformeCampos") echo '';
+ if (@$popup_activo=="InformeTablas") echo '';
+ if (@$popup_activo=="InformeCondiciones")echo '';
+ if (@$popup_activo=="InformeAcciones") echo '';
+ //Habilita pesatanas activas en el popup activo
+ if (@$pestana_activa_editor=="eventos_objeto-tab")echo '';
+ ?>
';
+ if (@$funciones_activacion_datepickers!="") echo '';
//Deslizadores
- if (@$funciones_activacion_sliders!="")
- echo '';
+ if (@$funciones_activacion_sliders!="") echo '';
//Canvas
- if (@$funciones_activacion_canvas!="")
- echo '';
- ?>
+ if (@$funciones_activacion_canvas!="") echo '';
-
- ', {
+ const textarea = $(this);
+ const mode = textarea.data('editor');
+ const editDiv = $('
', {
position: 'absolute',
width: textarea.width(),
height: textarea.height(),
@@ -654,12 +583,12 @@
textarea.css('visibility', 'hidden');
textarea.css('display', 'none');
- var editor = ace.edit(editDiv[0]);
+ const editor = ace.edit(editDiv[0]);
//editor.renderer.setShowGutter(false); //Ocultar numero de lineas, ayudas, opciones de colapsar, etc
editor.getSession().setValue(textarea.val());
editor.getSession().setMode("ace/mode/" + mode);
editor.setTheme("ace/theme/eclipse"); //Establece el tema a utilizar twilight|eclipse
-
+
/*
// copy back to textarea on form submit...
textarea.closest('form').submit(function () {
@@ -688,7 +617,7 @@
{
echo "
$('#Summer_valor_etiqueta').summernote({
- lang: 'es-ES',
+ lang: 'es-ES',
height: 300,
toolbar: [
['Estilos', ['style']],
@@ -705,9 +634,7 @@
],
//ANTERIORonChange: function(contents) { document.datosform.valor_etiqueta.value=contents; }
callbacks: {
- onChange: function(contents) {
- document.datosform.valor_etiqueta.value=contents;
- }
+ onChange: function(contents) { document.datosform.valor_etiqueta.value=contents; }
}
});
//ANTERIOR$('#Summer_valor_etiqueta').code(document.datosform.valor_etiqueta.value);
@@ -731,7 +658,7 @@
//Activa visualmente todos los div tipo SummerNote y los asocia a cada textarea
$(document).ready(function() {
$('#Summer_valor_etiqueta').summernote({
- lang: 'es-ES',
+ lang: 'es-ES',
height: 300,
toolbar: [
['Estilos', ['style']],
@@ -758,35 +685,26 @@
//Agrega funcion para la intercepcion del submit del formulario
echo '
';
//Si existen funciones JavaScript generadas por algun formulario del usuario entonces las imprime
- if(@$PCO_FuncionesJSInternasFORM!="")
- echo $PCO_FuncionesJSInternasFORM;
- ?>
+ if(@$PCO_FuncionesJSInternasFORM!="") echo $PCO_FuncionesJSInternasFORM;
- '.$MULTILANG_ErrorConexionInternet.'", 0, 100);
}
});
';
- ?>
-
-
- ';
+
+ ';
}
- ?>
-
- PCOJS.GeoLocalizarUsuario();
- ';
- }
+ if ($PWA_AutorizacionGPS=="1") echo '';
//Solicita autorizacion para uso de camara y microfono de acuerdo a la configuracion actual
if ($PWA_AutorizacionCAM=="1" || $PWA_AutorizacionMIC=="1")
{
- $PCO_SolicitudCAM='false';
- $PCO_SolicitudMIC='false';
- if ($PWA_AutorizacionCAM==1) $PCO_SolicitudCAM='true';
- if ($PWA_AutorizacionMIC==1) $PCO_SolicitudMIC='true';
+ $PCO_SolicitudCAM = $PWA_AutorizacionCAM==1 ? 'true' : 'false';
+ $PCO_SolicitudMIC = $PWA_AutorizacionMIC==1 ? 'true' : 'false';
echo '';
}
- ?>
-
@@ -919,8 +812,8 @@ function(err) {
?>
//Actualiza marco con el tiempo de carga JavaScript (tiempo de carga y transferencia)
- var tiempo_final_javascript = (new Date()).getTime();
- var tiempo_final_javascript_segs = (tiempo_final_javascript-tiempo_inicio_javascript)/1000;
+ const tiempo_final_javascript = (new Date()).getTime();
+ const tiempo_final_javascript_segs = (tiempo_final_javascript-tiempo_inicio_javascript)/1000;
$('#PCO_TCargaJS').text(tiempo_final_javascript_segs);
//Mensajes de advertencia en consola de desarrollo del navegador