]> git.mxchange.org Git - friendica.git/commitdiff
Feature for desktop-notifications
authorFlxAlbroscheit <felix@artplantation.de>
Tue, 31 Mar 2015 00:11:46 +0000 (02:11 +0200)
committerFlxAlbroscheit <felix@artplantation.de>
Tue, 31 Mar 2015 00:11:46 +0000 (02:11 +0200)
view/templates/settings.tpl

index 323b614ef63d5111a4d94238be006b0d9031b0ac..95ee0f6fbc4cdc5ed18f81c88f0257509dd14872 100644 (file)
 {{include file="field_intcheckbox.tpl" field=$notify8}}
 </div>
 
+<div class="field">
+ <button onclick="javascript:Notification.requestPermission(function(perm){if(perm === 'granted')alert('{{$desktop_notifications_success_message}}');});return false;">{{$desktop_notifications}}</button>
+ <span class="field_help">{{$desktop_notifications_note}}</span>
+</div>
+
 {{include file="field_checkbox.tpl" field=$email_textonly}}
 
 </div>