Skip to content

Commit

Permalink
CSS fix for non-disly of text in edit buttons in bootstrap3 template
Browse files Browse the repository at this point in the history
  • Loading branch information
turnermm committed Jul 26, 2018
1 parent 7c85d03 commit 35d4f31
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions action/meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,7 @@ function file_type(Doku_Event $event, $param) {
$JSINFO['wrapDiv'] = $syntaxDiv;
}
else $JSINFO['wrapDiv'] = "";
$JSINFO['template'] = $conf['template'];
$syntaxSpan = $wrap_helper->getConf('syntaxSpan');
if(!empty($syntaxSpan)) {
$JSINFO['wrapSpan'] = $syntaxSpan;
Expand Down
2 changes: 1 addition & 1 deletion plugin.info.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
base ckgdoku
author Myron Turner
email turnermm02@shaw.ca
date 2018-05-21
date 2018-07-26
name ckgdoku
desc WYSIWYG plugin for Dokuwiki
url https://www.dokuwiki.org/plugin:ckgdoku
Expand Down
14 changes: 14 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,20 @@ jQuery(document).ready(function(){
f.submit();
})
}

if(JSINFO['template'].match(/bootstrap/) && jQuery('div.editButtons').length>0) {
//var n=jQuery('div.editButtons input').length;
jQuery( "div.editButtons input").each(function( index ) {
if(jQuery(this).hasClass('btn-success')) {
jQuery(this).removeClass('btn-success')
}
if(jQuery(this).hasClass('btn-danger')) {
jQuery(this).removeClass('btn-danger');
}

});

}

});

Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_ckgDoku-ckgedit_457-18-May_21-23_21
_ckgDoku-ckgedit_457-18-Jul_26-06_15

0 comments on commit 35d4f31

Please sign in to comment.