allow follow links in disabled state
This commit is contained in:
@ -3,6 +3,7 @@ X-editable changelog
|
|||||||
|
|
||||||
Version 1.4.5 wip
|
Version 1.4.5 wip
|
||||||
----------------------------
|
----------------------------
|
||||||
|
[enh] allow follow links in disabled state (vitalets)
|
||||||
[enh] update combodate to 1.0.4, fix #222 (vitalets)
|
[enh] update combodate to 1.0.4, fix #222 (vitalets)
|
||||||
|
|
||||||
|
|
||||||
|
@ -60,8 +60,10 @@ Makes editable any HTML element on the page. Applied as jQuery method.
|
|||||||
if(this.options.toggle !== 'manual') {
|
if(this.options.toggle !== 'manual') {
|
||||||
this.$element.addClass('editable-click');
|
this.$element.addClass('editable-click');
|
||||||
this.$element.on(this.options.toggle + '.editable', $.proxy(function(e){
|
this.$element.on(this.options.toggle + '.editable', $.proxy(function(e){
|
||||||
//prevent following link
|
//prevent following link if editable enabled
|
||||||
|
if(!this.options.disabled) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
}
|
||||||
|
|
||||||
//stop propagation not required because in document click handler it checks event target
|
//stop propagation not required because in document click handler it checks event target
|
||||||
//e.stopPropagation();
|
//e.stopPropagation();
|
||||||
|
Reference in New Issue
Block a user