1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2026-01-24 20:15:58 +00:00

Update bootstrap and jquery versions for bootstrap theme

This commit is contained in:
James Hillyerd
2016-02-22 19:15:37 -08:00
parent 44f6407de8
commit bcc36ee965
172 changed files with 14086 additions and 6273 deletions

View File

@@ -1,18 +1,18 @@
define([
define( [
"./core",
"./core/init",
"./manipulation", // clone
"./traversing" // parent, contents
], function( jQuery ) {
jQuery.fn.extend({
jQuery.fn.extend( {
wrapAll: function( html ) {
var wrap;
if ( jQuery.isFunction( html ) ) {
return this.each(function( i ) {
jQuery( this ).wrapAll( html.call(this, i) );
});
return this.each( function( i ) {
jQuery( this ).wrapAll( html.call( this, i ) );
} );
}
if ( this[ 0 ] ) {
@@ -24,7 +24,7 @@ jQuery.fn.extend({
wrap.insertBefore( this[ 0 ] );
}
wrap.map(function() {
wrap.map( function() {
var elem = this;
while ( elem.firstElementChild ) {
@@ -32,7 +32,7 @@ jQuery.fn.extend({
}
return elem;
}).append( this );
} ).append( this );
}
return this;
@@ -40,12 +40,12 @@ jQuery.fn.extend({
wrapInner: function( html ) {
if ( jQuery.isFunction( html ) ) {
return this.each(function( i ) {
jQuery( this ).wrapInner( html.call(this, i) );
});
return this.each( function( i ) {
jQuery( this ).wrapInner( html.call( this, i ) );
} );
}
return this.each(function() {
return this.each( function() {
var self = jQuery( this ),
contents = self.contents();
@@ -55,25 +55,25 @@ jQuery.fn.extend({
} else {
self.append( html );
}
});
} );
},
wrap: function( html ) {
var isFunction = jQuery.isFunction( html );
return this.each(function( i ) {
jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
});
return this.each( function( i ) {
jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
} );
},
unwrap: function() {
return this.parent().each(function() {
return this.parent().each( function() {
if ( !jQuery.nodeName( this, "body" ) ) {
jQuery( this ).replaceWith( this.childNodes );
}
}).end();
} ).end();
}
});
} );
return jQuery;
});
} );