mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:40:17 +00:00
Add 'attach' and 'language' icons and enable file upload in dispy template
This commit is contained in:
parent
4c629e274b
commit
89fc56723d
4 changed files with 21 additions and 5 deletions
Binary file not shown.
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 17 KiB |
|
@ -81,6 +81,17 @@ tinyMCE.init({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
var file_uploader = new window.AjaxUpload(
|
||||||
|
'wall-file-upload',
|
||||||
|
{ action: 'wall_attach/$nickname',
|
||||||
|
name: 'userfile',
|
||||||
|
onSubmit: function(file,ext) { $('#profile-rotator').show(); },
|
||||||
|
onComplete: function(file,response) {
|
||||||
|
tinyMCE.execCommand('mceInsertRawHTML',false,response);
|
||||||
|
$('#profile-rotator').hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
$('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
|
$('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
|
||||||
var selstr;
|
var selstr;
|
||||||
$('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
|
$('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
|
||||||
|
|
|
@ -28,6 +28,9 @@
|
||||||
<div id="profile-upload-wrapper" class="jot-tool" style="display: $visitor;" >
|
<div id="profile-upload-wrapper" class="jot-tool" style="display: $visitor;" >
|
||||||
<div id="wall-image-upload-div" ><a onclick="return false;" id="wall-image-upload" class="icon border camera" title="$upload"></a></div>
|
<div id="wall-image-upload-div" ><a onclick="return false;" id="wall-image-upload" class="icon border camera" title="$upload"></a></div>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="profile-attach-wrapper" class="jot-tool" style="display: $visitor;" >
|
||||||
|
<div id="wall-file-upload-div" ><a href="#" onclick="return false;" id="wall-file-upload" class="icon border attach" title="$attach"></a></div>
|
||||||
|
</div>
|
||||||
<div id="profile-link-wrapper" class="jot-tool" style="display: $visitor;" ondragenter="linkdropper(event);" ondragover="linkdropper(event);" ondrop="linkdrop(event);" >
|
<div id="profile-link-wrapper" class="jot-tool" style="display: $visitor;" ondragenter="linkdropper(event);" ondragover="linkdropper(event);" ondrop="linkdrop(event);" >
|
||||||
<a id="profile-link" class="icon border link" title="$weblink" ondragenter="return linkdropper(event);" ondragover="return linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink(); return false;"></a>
|
<a id="profile-link" class="icon border link" title="$weblink" ondragenter="return linkdropper(event);" ondragover="return linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink(); return false;"></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -826,6 +826,8 @@ section { margin: 10px 11% 0px 11%; font-size: 0.8em; padding-right: 230px;}
|
||||||
.video { background-position: -110px -40px;}
|
.video { background-position: -110px -40px;}
|
||||||
.youtube { background-position: -130px -40px;}
|
.youtube { background-position: -130px -40px;}
|
||||||
|
|
||||||
|
.attach { background-position: -190px -40px;}
|
||||||
|
.language { background-position: -210px -40px;}
|
||||||
|
|
||||||
.attachtype {
|
.attachtype {
|
||||||
display: block; width: 20px; height: 23px;
|
display: block; width: 20px; height: 23px;
|
||||||
|
|
Loading…
Reference in a new issue