mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
23 lines
590 B
JavaScript
23 lines
590 B
JavaScript
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
|
|
//>>description: Simple class additions for links.
|
|
//>>label: Link Classes
|
|
|
|
define( [ "jquery" ], function( $ ) {
|
|
//>>excludeEnd("jqmBuildExclude");
|
|
(function( $, undefined ) {
|
|
|
|
$( document ).bind( "pagecreate create", function( e ){
|
|
|
|
//links within content areas
|
|
$( e.target )
|
|
.find( "a" )
|
|
.not( ".ui-btn, .ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')" )
|
|
.addClass( "ui-link" );
|
|
|
|
});
|
|
|
|
})( jQuery );
|
|
|
|
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
|
|
});
|
|
//>>excludeEnd("jqmBuildExclude");
|