Skip to content

Commit

Permalink
open folder fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Offerel committed Jan 9, 2021
1 parent 134fc84 commit 6c6ce0b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v2.2.5
- open folder fix

### v2.2.4
- Change to http POST

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"role": "Developer"
}
],
"version": "2.2.4",
"version": "2.2.5",
"repositories": [
{
"type": "composer",
Expand Down
2 changes: 1 addition & 1 deletion skins/elastic/plugin.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
}
#bookmarks li label {
background: url(images/folder-horizontal.png) 12px 0 no-repeat;
cursor: pointer;
/* cursor: pointer; */
display: block;
padding-left: 35px;
}
Expand Down
2 changes: 1 addition & 1 deletion skins/elastic/plugin.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions syncmarks.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Roundcube Bookmarks Plugin
*
* @version 2.2.4
* @version 2.2.5
* @author Offerel
* @copyright Copyright (c) 2020, Offerel
* @copyright Copyright (c) 2021, Offerel
* @license GNU General Public License, version 3
*/
function h_del(t, o, format) {
Expand Down
4 changes: 2 additions & 2 deletions syncmarks.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions syncmarks.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/**
* Roundcube Bookmarks Plugin
*
* @version 2.2.4
* @version 2.2.5
* @author Offerel
* @copyright Copyright (c) 2020, Offerel
* @copyright Copyright (c) 2021, Offerel
* @license GNU General Public License, version 3
*/
class syncmarks extends rcube_plugin
Expand Down Expand Up @@ -464,8 +464,8 @@ function parseHTMLMarks($bookmarks, $bdate, $button, $format='html') {
$bookmarks = preg_replace("/<DD>[^>]*?</i", "<", $bookmarks);
$bookmarks = preg_replace("/<DT><H3 [^>]*? PERSONAL_TOOLBAR_FOLDER=\"true\">(.+?)<\/H3>/is", "</ol><H1>$1</H1>", $bookmarks);
$bookmarks = preg_replace("/<DT><H3 [^>]*? UNFILED_BOOKMARKS_FOLDER=\"true\">(.+?)<\/H3>/is", "<H1>$1</H1>", $bookmarks);
$bookmarks = preg_replace("/<H1>(.+?)<\/H1>/is", "<li>\n<label for=\"$1\">$1</label><input type=\"checkbox\" id=\"$1\">", $bookmarks);
$bookmarks = preg_replace("/<DT><H3\s(.+?)>(.+?)<\/H3>/is", "<li><label for=\"$2\">$2</label><input type=\"checkbox\" id=\"$2\">", $bookmarks);
$bookmarks = preg_replace("/<H1>(.+?)<\/H1>/is", "<li>\n<label for=''>$1</label><input type=\"checkbox\" id=\"$1\">", $bookmarks);
$bookmarks = preg_replace("/<DT><H3\s(.+?)>(.+?)<\/H3>/is", "<li><label for=''>$2</label><input type=\"checkbox\" id=\"$2\">", $bookmarks);
$bookmarks = str_replace("<DT><A HREF=","<li class=\"file\"><A onContextMenu=\"h_del(event, this, '$format');\" target='_blank' HREF=",$bookmarks);
$bookmarks = str_replace("</A>","</A></li>",$bookmarks);
$bookmarks = preg_replace("/<A (.+?)>(.+?)<\/A>/is", "<a title=\"$2\" $1>$2</a>", $bookmarks);
Expand Down

0 comments on commit 6c6ce0b

Please sign in to comment.