mirror of
https://github.com/moparisthebest/mail
synced 2024-11-22 17:02:17 -05:00
[WO-629] Replace href javascript:; by # to prevent CSP warning when clicking on an anchor
This commit is contained in:
parent
24a181cf8d
commit
2b15eabcd0
@ -7,7 +7,7 @@
|
|||||||
<ul class="nav__folders">
|
<ul class="nav__folders">
|
||||||
<li ng-repeat="folder in account.folders" ng-if="folder.wellknown" ng-hide="folder.type === 'Outbox' && folder.count < 1"
|
<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}">
|
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">
|
<svg role="presentation">
|
||||||
<use ng-if="folder.type === 'Inbox'" xlink:href="#icon-inbox" />
|
<use ng-if="folder.type === 'Inbox'" xlink:href="#icon-inbox" />
|
||||||
<use ng-if="folder.type === 'Sent'" xlink:href="#icon-sent" />
|
<use ng-if="folder.type === 'Sent'" xlink:href="#icon-sent" />
|
||||||
@ -28,7 +28,7 @@
|
|||||||
<ul class="nav__folders">
|
<ul class="nav__folders">
|
||||||
<li ng-repeat="folder in account.folders" ng-if="!folder.wellknown"
|
<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}">
|
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>
|
<svg role="presentation"><use xlink:href="#icon-folder" /></svg>
|
||||||
{{folder.name}}
|
{{folder.name}}
|
||||||
<span ng-show="folder.count > 0" class="nav__counter">{{folder.count}}</span>
|
<span ng-show="folder.count > 0" class="nav__counter">{{folder.count}}</span>
|
||||||
@ -38,32 +38,32 @@
|
|||||||
|
|
||||||
<ul class="nav__secondary">
|
<ul class="nav__secondary">
|
||||||
<li>
|
<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
|
<svg role="presentation"><use xlink:href="#icon-account" /></svg> Account
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<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
|
<svg role="presentation"><use xlink:href="#icon-contact" /></svg> Contacts
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<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)
|
<svg role="presentation"><use xlink:href="#icon-key" /></svg> Key sync (experimental)
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<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
|
<svg role="presentation"><use xlink:href="#icon-bug" /></svg> Report a bug
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<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
|
<svg role="presentation"><use xlink:href="#icon-about" /></svg> About
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<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
|
<svg role="presentation"><use xlink:href="#icon-account" /></svg> Logout
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user