Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 1019 | Rev 1021 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1019 Rev 1020
Línea 262... Línea 262...
262
    });
262
    });
263
    /**
263
    /**
264
     * Clicked edit section
264
     * Clicked edit section
265
     */
265
     */
266
    $('button.btn-edit-section').click(function(e) {
266
    $('button.btn-edit-section').click(function(e) {
267
        var id = $(this).data('section');
-
 
268
        sections.map((item) => {
267
        console.log('1')
269
            if (section.id == id) {
-
 
270
 
268
        
271
                $('#form-section #id_section').val(item.section_id);
-
 
272
        $('#form-section #title-section').val(item.title);
-
 
273
        $('#form-section #text-text').val(item.text);
-
 
274
        $('#form-section #type-section').val(item.section);
-
 
275
        $('#modal-section').modal('show');
-
 
276
 
-
 
277
                return;
-
 
278
            }
-
 
279
        });
-
 
280
    });
269
    });
Línea 281... Línea 270...
281
 
270
 
282
    /**
271
    /**
283
     * Clicked edit section
272
     * Clicked edit section