app/soc/templates/soc/org_app/list/row.html
author Pawel Solyga <Pawel.Solyga@gmail.com>
Wed, 29 Apr 2009 18:51:58 +0200
changeset 2284 e7bb719e2539
parent 1858 0c9fb1e94c89
permissions -rw-r--r--
Fix Issue 389 (Clicking list entry will not open new tab/window). Patch by: Daniel Hans Reviewed by: Pawel Solyga
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2284
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
     1
<tr class="off" onmouseover="this.className='on'; do_redirect=true" onmouseout="this.className='off'" 
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
     2
onclick="if (do_redirect) document.location.href='{{ list.redirect }}'" name="name">
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
     3
  <td align="right">
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
     4
     <div class="name">
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
     5
	<a class="noul" onclick="do_redirect=false" href="{{ list.redirect }}">
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
     6
	  {{ list.item.name }}
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
     7
	</a>
1156
40bccd791cf6 Fixed EOL and whitespace in org_app templates
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1151
diff changeset
     8
     </div>
40bccd791cf6 Fixed EOL and whitespace in org_app templates
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1151
diff changeset
     9
  </td>
40bccd791cf6 Fixed EOL and whitespace in org_app templates
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1151
diff changeset
    10
  <td><div class="link_id">{{ list.item.link_id }}</a></div></td>
2284
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
    11
  <td onclick="if (redirect_to_ideas) document.location.href='{{ list.item.ideas }}'; do_redirect=false"
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
    12
      onmouseover="redirect_to_ideas=true">
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
    13
    <div class="idea_url">
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
    14
      <a onclick="redirect_to_ideas=false" href="{{ list.item.ideas }}">
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
    15
        {{ list.item.ideas|urlizetrunc:35|removetags:"a" }}
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
    16
      </a>
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
    17
    </div>
e7bb719e2539 Fix Issue 389 (Clicking list entry will not open new tab/window).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1858
diff changeset
    18
  </td>
1156
40bccd791cf6 Fixed EOL and whitespace in org_app templates
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1151
diff changeset
    19
</tr>