A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2011-October/114224.html below:

[Python-Dev] [Python-checkins] r88914 - tracker/instances/python-dev/html/issue.item.js

[Python-Dev] [Python-checkins] r88914 - tracker/instances/python-dev/html/issue.item.js [Python-Dev] [Python-checkins] r88914 - tracker/instances/python-dev/html/issue.item.jsBerker Peksağ berker.peksag at gmail.com
Wed Oct 26 11:39:06 CEST 2011
Hi,

On Wed, Oct 26, 2011 at 11:45 AM, ezio.melotti
<python-checkins at python.org> wrote:
> Author: ezio.melotti
> Date: Wed Oct 26 10:45:41 2011
> New Revision: 88914
>
> Log:
> Mark automated messages with a different background.
>
> Modified:
>   tracker/instances/python-dev/html/issue.item.js
>
> Modified: tracker/instances/python-dev/html/issue.item.js
> ==============================================================================
> --- tracker/instances/python-dev/html/issue.item.js     (original)
> +++ tracker/instances/python-dev/html/issue.item.js     Wed Oct 26 10:45:41 2011
> @@ -313,3 +313,14 @@
>     if (link.length != 0)
>         link.attr('href', link.attr('href').split('?')[0]);
>  });
> +
> +
> +$(document).ready(function() {
> +    /* Mark automated messages with a different background */
> +    $('table.messages th:nth-child(2)').each(function (i, e) {
> +        var e = $(e);
> +        if (/\(python-dev\)$/.test(e.text()))
> +            e.parent().next().find('td.content').css(
> +                'background-color', '#efeff9');
> +    });
> +});

I think this is shorter than $(document).ready();

$(function() {
    // ...
});

See: http://stackoverflow.com/questions/3528509/document-readyfunction-vs-function/3528528#3528528

--Berker

> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4