Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 383 Rev 384
Línea 426... Línea 426...
426
     */
426
     */
427
    $('button.btn-refresh').click(function(e) {
427
    $('button.btn-refresh').click(function(e) {
428
        tableForm.fnDraw();
428
        tableForm.fnDraw();
429
    });
429
    });
Línea -... Línea 430...
-
 
430
    
430
    
431
    /**
-
 
432
     * Clicked edit question
-
 
433
     */
-
 
434
    $('body').on('click', 'button.btn-add-status', function(e) {
431
    const doSomething =(ev)=>{
435
        e.preventDefault();
-
 
436
        var slug_section = $(this).data('section');
-
 
437
 
-
 
438
        objFormGenerator.editQuestion(
-
 
439
            $(this).data('section'),
-
 
440
            $(this).data('question'),
-
 
441
                    true
432
 console.log("do something. id: " + ev);
442
                );
433
  }
443
    });
-
 
444
 
434
 
445
    /**
-
 
446
     * Clicked edit question
-
 
447
     */
-
 
448
    $('body').on('click', 'button.btn-remove-status', function(e) {
435
  function edit(e){
449
        e.preventDefault();
-
 
450
        var slug_section = $(this).data('section');
-
 
451
 
-
 
452
        objFormGenerator.editQuestion(
-
 
453
            $(this).data('section'),
-
 
454
            $(this).data('question'),
-
 
455
                    false
436
    console.log("do something. id: " + ev);
456
                );
-
 
457
    });
437
  }
458
    
438
});
459
});
439
JS;
460
JS;
440
$this->inlineScript()->captureEnd();
461
$this->inlineScript()->captureEnd();
Línea 545... Línea 566...
545
                  <tr class="tr-question">
566
                  <tr class="tr-question">
546
                     <td class="text-left">{{:~removeTags(text)}} </td>
567
                     <td class="text-left">{{:~removeTags(text)}} </td>
547
                     <td>{{:~getAnswer(type,options,answer)}}</td>
568
                     <td>{{:~getAnswer(type,options,answer)}}</td>
548
                     <td>
569
                     <td>
Línea 549... Línea -...
549
 
-
 
-
 
570
 
Línea 550... Línea 571...
550
                     <a onclick="edit(slug_option)" id="btn0">Click me</a>
571
             
Línea 557... Línea 578...
557
                        {{else}}
578
                        {{else}}
558
                        {{if status}} 
579
                        {{if status}} 
Línea 559... Línea -...
559
                       
-
 
560
                 
-
 
561
 
580
                       
562
                        <button 
-
 
563
                        type="button"
581
                 
564
                        class="btn btn-danger btn-delete-question" 
582
 
565
                        id="btn1" 
583
                        <button type="button"  class="btn btn-danger btn-remove-status" 
566
                        data-link="{on ~doSomething('Hola')}" 
584
                        data-section="{{:slug_section}}" data-question="{{:slug_question}}"
Línea 567... Línea 585...
567
                        >
585
                        >
Línea 568... Línea -...
568
                        <i class="fa fa-times" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_FAIL
-
 
569
                        </button> 
586
                        <i class="fa fa-times" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_FAIL
Línea 570... Línea 587...
570
                        
587
                        </button> 
571
                        {{else}}
-
 
572
 
588
                        
573
                      
-
 
574
 
589
                        {{else}}
575
                    
-
 
576
                        <button 
590
 
577
                        type="button"
591