Merge pull request #1205 from UndefinedOffset/3.0

BUG Fixed issue with cms help toggles not functioning correctly
This commit is contained in:
Ingo Schommer 2013-03-20 05:47:05 -07:00
commit 74014650ed

View File

@ -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();
}
});