Skip to content

Commit 365d112

Browse files
committed
Elastic Skin
Added support for Roundcube 1.4 Elastic Skin
1 parent b51f987 commit 365d112

File tree

6 files changed

+39
-16
lines changed

6 files changed

+39
-16
lines changed

client.js

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
1+
/**
2+
* Roundcube elfinder Plugin
3+
*
4+
* @version 1.4.0
5+
* @author Offerel
6+
* @copyright Copyright (c) 2018, Offerel
7+
* @license GNU General Public License, version 3
8+
*/
19
window.rcmail && rcmail.addEventListener('init', function(evt) {
210
rcmail.register_command('plugin.storage.save_one', save_one, true);
3-
rcmail.register_command('plugin.storage.add_note', add_note, true);
411

512
rcmail.addEventListener('beforemenu-open', function(p) {
613
if (p.menu == 'attachmentmenu') {
714
rcmail.env.selected_attachment = p.id;
815
}
916
});
1017

11-
var fbutton = $("#compose-attachments").contents().find(".button");
18+
var fbutton = $("#compose-attachments").contents().find(".button");
1219
fbutton.after("<a class='button' tabindex='2' href='#' onclick='cform();'>" + rcmail.env.elbutton + "</a>");
20+
21+
$("#compose-attachments").contents().find("button").after("<button class='btn btn-secondary attach' tabindex='3' href='#' style='margin-left: 5px;' onclick='cform();'>" + rcmail.env.elbutton + "</button>");
1322
});
1423

1524
function save_one()
@@ -18,18 +27,6 @@ function save_one()
1827
rcmail.http_post('storage/save_one', '_mbox=' + urlencode(rcmail.env.mailbox) + '&_uid=' + rcmail.env.uid + '&_part=' + part);
1928
}
2029

21-
function add_note()
22-
{
23-
var title = prompt(rcmail.env.ntitle, '');
24-
var tags = prompt(rcmail.env.ntags, '');
25-
26-
if (title == null || title == "") {
27-
return;
28-
} else {
29-
rcmail.http_post('storage/add_note', '_title=' + urlencode(title) + '&_tags=' + urlencode(tags));
30-
}
31-
}
32-
3330
function dmessage(response)
3431
{
3532
alert(response.message);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"role": "Developer"
1313
}
1414
],
15-
"version": "1.2.4",
15+
"version": "1.4.0",
1616
"repositories": [
1717
{
1818
"type": "composer",

skins/elastic/elfinder.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.toolbarmenu li a.savelink::before {
2+
content: "\f0c2";
3+
transform: scale(0.85);
4+
}
5+
#taskmenu a.storage::before {
6+
content: "\f0c2";
7+
}
8+
.iframebox.storage_ {
9+
height: 100%;
10+
}
11+
.toolbarmenu li a.savelink::before {
12+
content: "\f0c2";
13+
}
427 Bytes
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<roundcube:include file="includes/layout.html" />
2+
<roundcube:include file="includes/menu.html" />
3+
<h1 class="voice"><roundcube:label name="storage.storage" /></h1>
4+
<div id="content" class="content selected" role="main">
5+
<div class="iframe-wrapper">
6+
<div id="pluginbody" class="offset">
7+
<div class="iframebox storage_<roundcube:var name='env:action' />">
8+
<roundcube:object name="storagecontent" id="storagecontentframe" style="width:100%; height:100%" frameborder="0" src="/watermark.html" />
9+
</div>
10+
</div>
11+
</div>
12+
</div>
13+
<roundcube:include file="includes/footer.html" />

storage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Roundcube elfinder Plugin
44
* Integrate elFinder in to Roundcube
55
*
6-
* @version 1.2.4
6+
* @version 1.4.0
77
* @author Offerel
88
* @copyright Copyright (c) 2018, Offerel
99
* @license GNU General Public License, version 3

0 commit comments

Comments
 (0)