public/assets/js/application.js
author Vincent Tondellier <tonton+hg@team1664.org>
Thu, 24 Sep 2015 01:49:55 +0200
changeset 75 e3912669678c
parent 64 f66d935647bc
permissions -rw-r--r--
Overhaul the repository link functionality - Fix regex (repositories with number or other characters were not accepted) - Url escape template arguments by default (the "do not escape" <%== $var %> markers can be used if needed) - Also support a generic repository type instead of only repotype:repopath in the configuration ($repotype:$repopath has priority over $repotype if both are defined) - Cache compiled templates
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12
c98d3fa4a948 Add licence
Vincent Tondellier <tonton+hg@team1664.org>
parents: 3
diff changeset
     1
// Adapted from socorro
c98d3fa4a948 Add licence
Vincent Tondellier <tonton+hg@team1664.org>
parents: 3
diff changeset
     2
// Licence: same as socorro (MPL ?)
3
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     3
$(document).ready(function () {
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     4
    $('.signature-column').append(' <a class="expand" href="#">[Expand]</a>');
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     5
    $('.expand').click(function () {
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     6
        $(".shortened-signature", $(this).parents('table')).each(function () {
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     7
            $(this).text($(this).attr('title')).removeAttr('title');
64
f66d935647bc Prettyprint function names using prettify.js
Vincent Tondellier <tonton+hg@team1664.org>
parents: 38
diff changeset
     8
            $(this).removeClass("prettyprinted");
3
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     9
        });
64
f66d935647bc Prettyprint function names using prettify.js
Vincent Tondellier <tonton+hg@team1664.org>
parents: 38
diff changeset
    10
        prettyPrint();
3
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    11
        $(this).remove();
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    12
        return false;
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    13
    });
38
6fa3cf9cf915 Add a filter to display warnings when the backtrace has bad frames
Vincent Tondellier <tonton+hg@team1664.org>
parents: 12
diff changeset
    14
6fa3cf9cf915 Add a filter to display warnings when the backtrace has bad frames
Vincent Tondellier <tonton+hg@team1664.org>
parents: 12
diff changeset
    15
    $('a[data-toggle="tooltip"]').tooltip();
64
f66d935647bc Prettyprint function names using prettify.js
Vincent Tondellier <tonton+hg@team1664.org>
parents: 38
diff changeset
    16
    prettyPrint();
3
2ff78fe4abda Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    17
});