mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1205 from UndefinedOffset/3.0
BUG Fixed issue with cms help toggles not functioning correctly
This commit is contained in:
commit
74014650ed
@ -844,13 +844,25 @@ jQuery.noConflict();
|
||||
onmatch: function() {
|
||||
this._super();
|
||||
|
||||
$(this.attr('href')).hide();
|
||||
var id=this.attr('href');
|
||||
if(id.indexOf('#')!=0) {
|
||||
id=id.split('#');
|
||||
id='#'+id[1];
|
||||
}
|
||||
|
||||
jQuery(id).hide();
|
||||
},
|
||||
onunmatch: function() {
|
||||
this._super();
|
||||
},
|
||||
onclick: function(e) {
|
||||
$(this.attr('href')).toggle();
|
||||
var id=this.attr('href');
|
||||
if(id.indexOf('#')!=0) {
|
||||
id=id.split('#');
|
||||
id='#'+id[1];
|
||||
}
|
||||
|
||||
jQuery(id).toggle();
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user