mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
[qcomment] Restore feature
- Move settings HTML to template - Move Javascript to addon file - Remove obsolete custom CSS
This commit is contained in:
parent
ec22a12365
commit
d497379988
4 changed files with 57 additions and 39 deletions
21
qcomment/templates/settings.tpl
Normal file
21
qcomment/templates/settings.tpl
Normal file
|
@ -0,0 +1,21 @@
|
|||
<span id="settings_qcomment_inflated" class="settings-block fakelink"
|
||||
style="{{if $postpost}}display: none;{{else}}display: block;{{/if}}"
|
||||
onclick="openClose('settings_qcomment_expanded'); openClose('settings_qcomment_inflated');">
|
||||
<h3>{{$header}}</h3>
|
||||
</span>
|
||||
<div id="settings_qcomment_expanded" class="settings-block"
|
||||
style="{{if $postpost}}display: block;{{else}}display: none;{{/if}}">
|
||||
<span class="fakelink" onclick="openClose('settings_qcomment_expanded'); openClose('settings_qcomment_inflated');">
|
||||
<h3>{{$header}}</h3>
|
||||
</span>
|
||||
|
||||
<div id="qcomment-wrapper">
|
||||
<p id="qcomment-desc">{{$description}}</p>
|
||||
|
||||
{{include file="field_textarea.tpl" field=$words}}
|
||||
|
||||
<div class="settings-submit-wrapper">
|
||||
<button type="submit" id="qcomment-submit" name="qcomment-submit" class="btn btn-primary settings-submit">{{$save}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue