1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-22 08:52:15 -05:00

[WO-629] Replace href javascript:; by # to prevent CSP warning when clicking on an anchor

This commit is contained in:
Tankred Hase 2014-11-05 12:35:38 +01:00
parent 24a181cf8d
commit 2b15eabcd0

View File

@ -7,7 +7,7 @@
<ul class="nav__folders">
<li ng-repeat="folder in account.folders" ng-if="folder.wellknown" ng-hide="folder.type === 'Outbox' && folder.count < 1"
class="nav__folder" ng-class="{'nav__folder--open': state.nav.currentFolder === folder}">
<a href="javascript:;" wo-touch="openFolder(folder)">
<a href="#" wo-touch="$event.preventDefault(); openFolder(folder)">
<svg role="presentation">
<use ng-if="folder.type === 'Inbox'" xlink:href="#icon-inbox" />
<use ng-if="folder.type === 'Sent'" xlink:href="#icon-sent" />
@ -28,7 +28,7 @@
<ul class="nav__folders">
<li ng-repeat="folder in account.folders" ng-if="!folder.wellknown"
class="nav__folder nav__folder__other" ng-class="{'nav__folder--open': state.nav.currentFolder === folder}">
<a href="javascript:;" wo-touch="openFolder(folder)">
<a href="#" wo-touch="$event.preventDefault(); openFolder(folder)">
<svg role="presentation"><use xlink:href="#icon-folder" /></svg>
{{folder.name}}
<span ng-show="folder.count > 0" class="nav__counter">{{folder.count}}</span>
@ -38,32 +38,32 @@
<ul class="nav__secondary">
<li>
<a href="javascript:;" wo-touch="state.account.toggle(true)">
<a href="#" wo-touch="$event.preventDefault(); state.account.toggle(true)">
<svg role="presentation"><use xlink:href="#icon-account" /></svg> Account
</a>
</li>
<li>
<a href="javascript:;" wo-touch="state.contacts.toggle(true)">
<a href="#" wo-touch="$event.preventDefault(); state.contacts.toggle(true)">
<svg role="presentation"><use xlink:href="#icon-contact" /></svg> Contacts
</a>
</li>
<li>
<a href="javascript:;" wo-touch="state.privateKeyUpload.toggle(true)">
<a href="#" wo-touch="$event.preventDefault(); state.privateKeyUpload.toggle(true)">
<svg role="presentation"><use xlink:href="#icon-key" /></svg> Key sync (experimental)
</a>
</li>
<li>
<a href="javascript:;" wo-touch="state.writer.reportBug()">
<a href="#" wo-touch="$event.preventDefault(); state.writer.reportBug()">
<svg role="presentation"><use xlink:href="#icon-bug" /></svg> Report a bug
</a>
</li>
<li>
<a href="javascript:;" wo-touch="state.about.toggle(true)">
<a href="#" wo-touch="$event.preventDefault(); state.about.toggle(true)">
<svg role="presentation"><use xlink:href="#icon-about" /></svg> About
</a>
</li>
<li>
<a href="javascript:;" wo-touch="logout()">
<a href="#" wo-touch="$event.preventDefault(); logout()">
<svg role="presentation"><use xlink:href="#icon-account" /></svg> Logout
</a>
</li>