Skip to content
Snippets Groups Projects
Commit 169773d0 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge branch 'toolbar' of git://github.com/hafron/dokuwiki into pull-request-535

* 'toolbar' of git://github.com/hafron/dokuwiki:
  megre changes
  add preventDefault to toolbar buttons
parents 4383fddd 79fb388b
No related branches found
No related tags found
No related merge requests found
......@@ -134,7 +134,10 @@ function pickerInsert(text,edid){
*/
function addBtnActionSignature($btn, props, edid) {
if(typeof SIG != 'undefined' && SIG != ''){
$btn.bind('click', bind(insertAtCarret,edid,SIG));
$btn.bind('click', function (e) {
insertAtCarret(edid,SIG);
e.preventDefault();
});
return edid;
}
return '';
......
......@@ -199,8 +199,9 @@ function addBtnActionPicker($btn, props, edid) {
jQuery(picker).attr('aria-hidden', 'true');
$btn.click(
function() {
function(e) {
pickerToggle(pickerid,$btn);
e.preventDefault();
return '';
}
);
......@@ -219,9 +220,10 @@ function addBtnActionPicker($btn, props, edid) {
*/
function addBtnActionLinkwiz($btn, props, edid) {
dw_linkwiz.init(jQuery('#'+edid));
jQuery($btn).click(function(){
jQuery($btn).click(function(e){
dw_linkwiz.val = props;
dw_linkwiz.toggle();
e.preventDefault();
return '';
});
return 'link__wiz';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment