Revision 1264
Added by Dietmar over 14 years ago
jquery-plugins.js | ||
---|---|---|
8 | 8 |
if($(".jsadmin").length) { |
9 | 9 |
$.insert(WB_URL+"/modules/jsadmin/backend.css"); |
10 | 10 |
} |
11 |
/* |
|
12 |
if($("a[rel^='lightbox']").length) { |
|
13 |
$.insert(WB_URL+"/include/jquery/plugins/jquery-slimbox2.css"); |
|
14 |
$.insert(WB_URL+"/include/jquery/plugins/jquery-slimbox2-min.js"); |
|
15 |
} |
|
16 |
if($("textarea.markitup").length) { |
|
17 |
$.insert(WB_URL+'/modules/markitup/latest/skins/markitup/style.css'); |
|
18 |
$.insert(WB_URL+'/modules/markitup/latest/sets/default/style.css'); |
|
19 |
$.insert(WB_URL+'/modules/markitup/latest/jquery.markitup.pack.js'); |
|
20 |
$.insert(WB_URL+'/modules/markitup/latest/sets/default/set.js'); |
|
21 | 11 |
|
22 |
// Add markItUp! to your textarea in one line |
|
23 |
// $('textarea.markitup').markItUp( { Settings }, { OptionalExtraSettings } ); |
|
24 |
$('textarea.markitup').markItUp(mySettings); |
|
12 |
//Add external link class to external links - |
|
13 |
$('a[href^="http://"]').filter(function() { |
|
14 |
//Compare the anchor tag's host name with location's host name |
|
15 |
return this.hostname && this.hostname !== location.hostname; |
|
16 |
}).addClass("external").attr("target", "_blank"); |
|
25 | 17 |
|
26 |
} |
|
27 |
*/ |
|
18 |
/* Add internal link class to external links - */ |
|
19 |
$('a[href^="http://"]').filter(function() { |
|
20 |
//Compare the anchor tag's host name with location's host name |
|
21 |
return this.hostname && this.hostname == location.hostname; |
|
22 |
}).addClass("internal"); |
|
23 |
|
|
28 | 24 |
}); |
Also available in: Unified diff
Ticket #916 Update backend theme footer