Skip to content

Commit

Permalink
more of last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bnvk committed Oct 24, 2014
1 parent 10ab01f commit 3da481a
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 19 deletions.
8 changes: 6 additions & 2 deletions static/default/html/contacts/add.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
</form>
</div>
{% else %}
{{ mailpile('http/redirect',
'/contacts/view/' + result.contacts.0.email.0.email + '/') }}
{{ mailpile('http/redirect', '/contacts/view/' + result.contacts.0.email.0.email + '/') }}
{% endif %}
<script>
$(document).ready(function() {
Mailpile.Contacts.init();
});
</script>
{% endblock %}
7 changes: 5 additions & 2 deletions static/default/html/contacts/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,14 @@ <h4>{{_("Conversations")}}</h4>
{% else %}
<h4>{{_("No Conversations")}} :(</h4>
{% endif %}

{% else %}
{% set error_title = "contact_missing" %}
{% include("partials/errors_content.html") %}
{% endif %}
</div>

<script>
$(document).ready(function() {
Mailpile.Contacts.init();
});
</script>
{% endblock %}
7 changes: 0 additions & 7 deletions static/default/html/jsapi/contacts/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,3 @@ $('.show-key-details').on('click', function(e) {
$('#contact-key-details-' + keyid).fadeIn();
});


$(document).ready(function() {

// Hide Key Details
$('.contact-key-details').hide();

});
3 changes: 2 additions & 1 deletion static/default/html/jsapi/contacts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ Mailpile.Contacts.UI = {};

Mailpile.Contacts.init = function() {


// Search Bar
$('#search-query').val('contacts: ');

// Hide Key Details
$('.contact-key-details').hide();

};
6 changes: 0 additions & 6 deletions static/default/html/jsapi/tags/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,3 @@ $(document).on('change', '#data-tag-label', function(e) {
});
});

$(document).ready(function() {

// Slugify
$('#data-tag-add-slug').slugify('#data-tag-add-tag');

});
3 changes: 2 additions & 1 deletion static/default/html/jsapi/tags/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ Mailpile.Tags.UI = {};

Mailpile.Tags.init = function() {


// Search Bar
$('#search-query').val('tags: ');

// Slugify
$('#data-tag-add-slug').slugify('#data-tag-add-tag');

};
5 changes: 5 additions & 0 deletions static/default/html/tags/add.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@
"display": "tag"
} %}
{% include("tags/form.html") %}
<script>
$(document).ready(function() {
Mailpile.Tags.init();
});
</script>
{% endblock %}
5 changes: 5 additions & 0 deletions static/default/html/tags/index-edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@
{% set form_title = _("Edit Tag") %}
{% set tag = result.tags.0 %}
{% include("tags/form.html") %}
<script>
$(document).ready(function() {
Mailpile.Tags.init();
});
</script>
{% endblock %}

0 comments on commit 3da481a

Please sign in to comment.