Skip to content
Permalink
Browse files

Added support for `watchcycle`, `davcal`, `move` and `monthcal` plugins

  • Loading branch information...
giterlizzi committed Oct 10, 2019
1 parent a7b9ff0 commit 1d0182e895024daf5e216f20677131c62ca99568
Showing with 613 additions and 502 deletions.
  1. +502 −501 RELEASE.md
  2. +2 −0 js/plugins.js
  3. +14 −1 js/plugins/davcal.js
  4. +17 −0 js/plugins/monthcal.js
  5. +68 −0 js/plugins/move.js
  6. +10 −0 js/plugins/watchcycle.js
1,003 RELEASE.md

Large diffs are not rendered by default.

@@ -23,6 +23,8 @@ jQuery(document).on('bootstrap3:plugins', function(event) {
/* DOKUWIKI:include js/plugins/gallery.js */
/* DOKUWIKI:include js/plugins/include.js */
/* DOKUWIKI:include js/plugins/inlinetoc.js */
/* DOKUWIKI:include js/plugins/monthcal.js */
/* DOKUWIKI:include js/plugins/move.js */
/* DOKUWIKI:include js/plugins/overlay.js */
/* DOKUWIKI:include js/plugins/publish.js */
/* DOKUWIKI:include js/plugins/semantic.js */
@@ -11,5 +11,18 @@
var $davcal = jQuery('#fullCalendar');

if ($davcal.length) {
$davcal.find('.fc-button-group').addClass('btn-group');
$davcal.find('.fc-button-group').addClass('btn-group');
}

var $davcard_table = jQuery('.davcardAddressbookTable');

if ($davcard_table.length) {
$davcard_table.addClass('table');
}

var $davcard_add_btn = jQuery('a.davcardAddressbookAddNew');

if ($davcard_add_btn.length) {
$davcard_add_btn.prepend(jQuery('<i class="mdi mdi-account-plus"></i>&nbsp;'));
$davcard_add_btn.addClass('btn btn-xs btn-primary');
}
@@ -0,0 +1,17 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/

// Monthcal Plugin

var $monthcal = jQuery('table.monthcal');

if ($monthcal.length) {

$monthcal.addClass('table');

}
@@ -0,0 +1,68 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/

// Move Plugin

jQuery(document).on('bootstrap3:plugin-move', function(event) {

if (! jQuery('#plugin_move__tree').length) return false;

// console.debug(event.type + ' event fired');

setTimeout(function() {

var $directories = jQuery('li.type-d a.idx_dir'),
$pages = jQuery('li.type-f a.wikilink1');

jQuery.each($directories, function() {

var $directory = jQuery(this),
$closed = $directory.parents('.closed'),
$open = $directory.parents('.open');

if (! $directory.find('.mdi').length) {
$directory.prepend('<i class="mdi text-primary"/> ');
}

if ($open.length) {
$directory.find('i')
.removeClass('mdi-folder')
.addClass('mdi-folder-open');
}

if ($closed.length) {
$directory.find('i')
.removeClass('mdi-folder-open')
.addClass('mdi-folder');
}

});

jQuery.each($pages, function() {

var $page = jQuery(this);

if (! $page.find('i').length) {
$page.prepend('<i class="mdi mdi-file-document text-muted"/> ');
}

});

}, 0);

});

jQuery('#plugin_move__tree a').click(function(e) {
jQuery(document).trigger('bootstrap3:mode-index');
});

jQuery(document).trigger('bootstrap3:plugin-move');

jQuery(document).ajaxSuccess(function(e) {
jQuery(document).trigger('bootstrap3:plugin-move');
});
@@ -0,0 +1,10 @@
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/

// Watchcycle Plugin
jQuery('#plugin__watchcycle_admin table').addClass('table table-striped');

0 comments on commit 1d0182e

Please sign in to comment.
You can’t perform that action at this time.