Browse Source

Merge pull request #556 from ilosada/BT9463a

B#9463 - Fix validation column issues. Fix user name in modal
Julio 10 years ago
parent
commit
327da27a30
1 changed files with 3 additions and 1 deletions
  1. 3 1
      plugin/advanced_subscription/views/admin_view.tpl

+ 3 - 1
plugin/advanced_subscription/views/admin_view.tpl

@@ -55,9 +55,11 @@
                             {% set cellClass = 'success'%}
                         {% endif %}
                         <td>
+                            {% if student.validation != '' %}
                             <span class="label label-{{ cellClass }}">
                                 {{ student.validation | get_plugin_lang('AdvancedSubscriptionPlugin') }}
                             </span>
+                            {% endif %}
                         </td>
                         <td>
                             <a
@@ -114,7 +116,7 @@
         $("a.btn-advanced-subscription").click(function(event){
             event.preventDefault();
             var confirmed = false;
-            var studentName = $(this).closest("tr").find(".name").html();
+            var studentName = $.trim($(this).closest("tr").find(".name").text());
             if (studentName) {
                 ;
             } else {