Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 378 Rev 379
Línea 414... Línea 414...
414
    const renderSectionData = (data) => $("#rows").html($("#sectionTemplate").render(data, {
414
    const renderSectionData = (data) => $("#rows").html($("#sectionTemplate").render(data, {
415
        removeTags: removeTags,
415
        removeTags: removeTags,
416
        getAnswer: getAnswer,
416
        getAnswer: getAnswer,
417
        getStatus: getStatus,
417
        getStatus: getStatus,
418
        editQuestion: objFormGenerator.editQuestion,
418
        editQuestion: objFormGenerator.editQuestion,
419
        doSomething: function(ev) {
419
        doSomething:  doSomething
420
    alert("do something. id: " + ev.target.id);
-
 
421
  }
-
 
422
    }));
420
    }));
423
    /**
421
    /**
424
     * Clear Div Section data 
422
     * Clear Div Section data 
425
     */
423
     */
426
    const clearSectionData = () => $("#rows").html('');
424
    const clearSectionData = () => $("#rows").html('');
Línea 428... Línea 426...
428
     * Clicked refresh button
426
     * Clicked refresh button
429
     */
427
     */
430
    $('button.btn-refresh').click(function(e) {
428
    $('button.btn-refresh').click(function(e) {
431
        tableForm.fnDraw();
429
        tableForm.fnDraw();
432
    });
430
    });
-
 
431
    
-
 
432
    const doSomething =(ev)=>{
-
 
433
 console("do something. id: " + ev);
-
 
434
  }
433
});
435
});
434
JS;
436
JS;
435
$this->inlineScript()->captureEnd();
437
$this->inlineScript()->captureEnd();
436
?>
438
?>
Línea 550... Línea 552...
550
 
552
 
551
                        <button 
553
                        <button 
552
                        type="button"
554
                        type="button"
553
                        class="btn btn-danger btn-delete-question" 
555
                        class="btn btn-danger btn-delete-question" 
554
                        id="btn1" 
556
                        id="btn1" 
555
                        data-link="{on ~doSomething}" 
557
                        data-link="{on ~doSomething('Hola')}" 
556
                        >
558
                        >
557
                        <i class="fa fa-times" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_FAIL
559
                        <i class="fa fa-times" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_FAIL
Línea 558... Línea 560...
558
                        </button> 
560
                        </button> 
Línea 564... Línea 566...
564
                    
566
                    
565
                        <button 
567
                        <button 
566
                        type="button"
568
                        type="button"
567
                        class="btn btn-success 
569
                        class="btn btn-success 
568
                        btn-delete-question"
570
                        btn-delete-question"
569
                        data-link="{on ~doSomething}"
571
                        data-link="{on ~doSomething('epa')}"
570
                        id="btn2" >
572
                        id="btn2" >
571
                        <i class="fa fa-check" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_CORRECT
573
                        <i class="fa fa-check" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_CORRECT