Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 389 Rev 390
Línea 422... Línea 422...
422
        tableForm.fnDraw();
422
        tableForm.fnDraw();
423
    });
423
    });
424
    /**
424
    /**
425
     * Clicked edit question
425
     * Clicked edit question
426
     */
426
     */
427
     $('.btn-add-status').click(function(e) {
427
    $('body').on('click', 'button.btn-add-status', function(e) {
-
 
428
        e.preventDefault();
428
        objFormGenerator.editQuestion(
429
        objFormGenerator.editQuestion(
429
            $(this).data('section'),
430
            $(this).data('section'),
430
            $(this).data('question'),
431
            $(this).data('question'),
431
            true
432
            true
432
        );
433
        );
433
    });
434
    });
434
    /**
435
    /**
435
     * Clicked edit question
436
     * Clicked edit question
436
     */
437
     */
437
    $('body').on('click', 'button.btn-remove-status', function(e) {
438
    $('body').on('click', 'button.btn-remove-status', function(e) {
-
 
439
        e.preventDefault();
438
        objFormGenerator.editQuestion(
440
        objFormGenerator.editQuestion(
439
            $(this).data('section'),
441
            $(this).data('section'),
440
            $(this).data('question'),
442
            $(this).data('question'),
441
            false
443
            false
442
        );
444
        );
Línea 554... Línea 556...
554
                     <td>
556
                     <td>
555
                        {{if type == 'simple'  || type=='multiple' }}
557
                        {{if type == 'simple'  || type=='multiple' }}
556
                        {{:~getStatus( options,answer)}}
558
                        {{:~getStatus( options,answer)}}
557
                        {{else}}
559
                        {{else}}
558
                        {{if status}} 
560
                        {{if status}} 
559
                        <button type="button"  class="btn btn-danger btn-remove-status" 
-
 
560
                           data-section="{{:slug_section}}" data-question="{{:slug_question}}"
561
                        <button class="btn btn-danger btn-remove-status"  data-section="{{:slug_section}}" data-question="{{:slug_question}}">
561
                           >
-
 
562
                        <i class="fa fa-times" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_FAIL
562
                        <i class="fa fa-times" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_FAIL
563
                        </button> 
563
                        </button> 
564
                        {{else}}
564
                        {{else}}
565
                        <button 
-
 
566
                           type="button" class="btn btn-success btn-add-status"
-
 
567
                           data-section="{{:slug_section}}" data-question="{{:slug_question}}" >
565
                        <button class="btn btn-success btn-add-status" data-section="{{:slug_section}}" data-question="{{:slug_question}}" >
568
                        <i class="fa fa-check" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_CORRECT
566
                        <i class="fa fa-check" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_CORRECT
569
                        </button> 
567
                        </button> 
570
                        {{/if}}
568
                        {{/if}}
571
                        {{/if}}
569
                        {{/if}}
572
                     </td>
570
                     </td>