1. Alexander Popelnukhin
  2. rcroadmin

Commits

Alexander Popelnukhin  committed 17c8eb3

Small fix

  • Participants
  • Parent commits f8cba61
  • Branches master

Comments (0)

Files changed (2)

File sambausers/forms.py

View file
  • Ignore whitespace
                 *fields
             ),
             FormActions(
-                Submit('submit', 'Сохранить', css_class='btn-primary'),
+                Submit('submit', u'Сохранить', css_class='btn-primary'),
                 HTML(u'<a href="{% url sambausers_index %}" class="btn">Отмена</a>'),
             )
 
                 *fields
             ),
             FormActions(
-                Submit('submit', 'Сохранить', css_class='btn-primary'),
+                Submit('submit', u'Сохранить', css_class='btn-primary'),
                 HTML(u'<a href="{% url sambausers_index %}" class="btn">Отмена</a>'),
             )
 

File templates/mailusers/index.html

View file
  • Ignore whitespace
             $('a.show-password').click(function (event) {
                 event.preventDefault();
                 if ($(this).html() === showText) {
+                    var password_link = this;
                     var username = $(this).parents('tr').find('td.login a').html();
                     var password_field = $(this).nextAll('.password');
                     ajax_request(
                             '{{ csrf_token }}',
                             function (data) {
                                 password_field.html('<code>' + data.password + '</code>');
-                                $(this).html(hideText);
+                                $(password_link).html(hideText);
                             }
                     );
                 } else {