Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1010 Rev 1011
Línea 263... Línea 263...
263
    });
263
    });
264
    /**
264
    /**
265
     * Clicked edit section
265
     * Clicked edit section
266
     */
266
     */
267
    $('#btn-edit-section').click(function(e) {
267
    $('#btn-edit-section').click(function(e) {
268
        console.log(0)
-
 
269
        $('#modal-section').modal('show');
268
        $('#modal-section').modal('show');
270
    });
269
    });
Línea 271... Línea 270...
271
 
270
 
Línea 293... Línea 292...
293
                    $('#section-name').val(),
292
                    $('#section-name').val(),
294
                    $('#section-text').val(),
293
                    $('#section-text').val(),
295
                    $('#section-type').val()
294
                    $('#section-type').val()
296
                ) 
295
                ) 
297
            }
296
            }
298
 
-
 
-
 
297
            $('#modal-section').modal('hide');
299
            return;
298
            return;
Línea 300... Línea 299...
300
        
299
        
-
 
300
        }
-
 
301
 
301
        }
302
        
Línea 302... Línea 303...
302
    });
303
    });
303
 
304
 
304
    /**
305
    /**
Línea 377... Línea 378...
377
     */
378
     */
378
    const removeTags = (str) => str.toString().replace( /(<([^>]+)>)/ig, '')
379
    const removeTags = (str) => str.toString().replace( /(<([^>]+)>)/ig, '')
379
    /**
380
    /**
380
     * Render Sections data
381
     * Render Sections data
381
     */
382
     */
382
    const renderData= (data) => $("#rows").html('');
383
    const renderData= (data) => {
-
 
384
        console.log(data);
-
 
385
    }
Línea 383... Línea 386...
383
 
386
 
384
    /**
387
    /**
385
     * Add Section to array
388
     * Add Section to array
386
     */
389
     */
Línea 413... Línea 416...
413
    const removeSection = (id) => {
416
    const removeSection = (id) => {
414
        sections = sections.filter((item) => item.id != id);
417
        sections = sections.filter((item) => item.id != id);
415
        renderData(sections);
418
        renderData(sections);
416
    }
419
    }
Línea -... Línea 420...
-
 
420
 
-
 
421
    
Línea 417... Línea 422...
417
 
422
 
418
 
423
 
419
    /**
424
    /**
420
     * Clicked refresh button
425
     * Clicked refresh button