mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
26 lines
418 B
JavaScript
26 lines
418 B
JavaScript
|
/**
|
||
|
* File: ModelAdmin.js
|
||
|
*/
|
||
|
|
||
|
(function($) {
|
||
|
$.entwine('ss', function($){
|
||
|
|
||
|
/**
|
||
|
* Class: .importSpec
|
||
|
*
|
||
|
* Toggle import specifications
|
||
|
*/
|
||
|
$('.importSpec').entwine({
|
||
|
onmatch: function() {
|
||
|
this.hide();
|
||
|
this.find('a.detailsLink').click(function() {
|
||
|
$('#' + $(this).attr('href').replace(/.*#/,'')).toggle();
|
||
|
return false;
|
||
|
});
|
||
|
|
||
|
this._super();
|
||
|
}
|
||
|
});
|
||
|
|
||
|
});
|
||
|
})(jQuery);
|