Changeset 12856
- Timestamp:
- 03/03/2021 04:52:37 AM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 21 edited
-
bp-activity/js/mentions.js (modified) (1 diff)
-
bp-core/js/avatar.js (modified) (2 diffs)
-
bp-core/js/bp-plupload.js (modified) (3 diffs)
-
bp-core/js/confirm.js (modified) (1 diff)
-
bp-core/js/cover-image.js (modified) (2 diffs)
-
bp-core/js/vendor/jquery-cookie.js (modified) (2 diffs)
-
bp-core/js/vendor/jquery-scroll-to.js (modified) (9 diffs)
-
bp-core/js/vendor/jquery.atwho.js (modified) (4 diffs)
-
bp-core/js/webcam.js (modified) (2 diffs)
-
bp-core/js/widget-members.js (modified) (1 diff)
-
bp-templates/bp-legacy/js/buddypress.js (modified) (8 diffs)
-
bp-templates/bp-legacy/js/password-verify.js (modified) (2 diffs)
-
bp-templates/bp-nouveau/js/buddypress-activity-post-form.js (modified) (2 diffs)
-
bp-templates/bp-nouveau/js/buddypress-activity.js (modified) (5 diffs)
-
bp-templates/bp-nouveau/js/buddypress-group-invites.js (modified) (2 diffs)
-
bp-templates/bp-nouveau/js/buddypress-messages.js (modified) (4 diffs)
-
bp-templates/bp-nouveau/js/buddypress-notifications.js (modified) (2 diffs)
-
bp-templates/bp-nouveau/js/buddypress-nouveau.js (modified) (2 diffs)
-
bp-templates/bp-nouveau/js/buddypress-xprofile.js (modified) (3 diffs)
-
bp-templates/bp-nouveau/js/customizer.js (modified) (1 diff)
-
bp-templates/bp-nouveau/js/password-verify.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/js/mentions.js
r12833 r12856 179 179 params = { 'action': 'bp_get_suggestions', 'term': query, 'type': 'members' }; 180 180 181 if ( $.isNumeric( this.$inputor.data( 'suggestions-group-id' ) ) ) { 181 var groupId = this.$inputor.data( 'suggestions-group-id' ); 182 if ( ( 'number' === typeof groupId || 'string' === typeof groupId ) && ! isNaN( groupId - parseFloat( groupId ) ) ) { 182 183 params['group-id'] = parseInt( this.$inputor.data( 'suggestions-group-id' ), 10 ); 183 184 } -
trunk/src/bp-core/js/avatar.js
r12554 r12856 1 /* global bp,BP_Uploader, _, Backbone */1 /* global BP_Uploader, _, Backbone */ 2 2 3 3 window.bp = window.bp || {}; 4 4 5 ( function( exports, $ ) {5 ( function( bp, $ ) { 6 6 7 7 // Bail if not set. … … 680 680 bp.Avatar.start(); 681 681 682 })( bp, jQuery );682 })( window.bp, jQuery ); -
trunk/src/bp-core/js/bp-plupload.js
r12548 r12856 1 /* global bp,plupload, BP_Uploader, _, JSON, Backbone */1 /* global plupload, BP_Uploader, _, JSON, Backbone */ 2 2 3 3 window.wp = window.wp || {}; 4 4 window.bp = window.bp || {}; 5 5 6 ( function( exports, $ ) {6 ( function( bp, $ ) { 7 7 8 8 // Bail if not set. … … 86 86 if ( uploader.features.dragdrop && ! self.params.browser.mobile ) { 87 87 container.addClass( 'drag-drop' ); 88 drop_element.bind( 'dragover.wp-uploader', function() { 88 89 drop_element.on( 'dragover.wp-uploader', function() { 89 90 container.addClass( 'drag-over' ); 90 } ).bind( 'dragleave.wp-uploader, drop.wp-uploader', function() { 91 } ); 92 93 drop_element.on( 'dragleave.wp-uploader, drop.wp-uploader', function() { 91 94 container.removeClass( 'drag-over' ); 92 95 } ); 93 96 } else { 94 97 container.removeClass( 'drag-drop' ); 95 drop_element. unbind( '.wp-uploader' );98 drop_element.off( '.wp-uploader' ); 96 99 } 97 100 … … 417 420 } ); 418 421 419 })( bp, jQuery );422 })( window.bp, jQuery ); -
trunk/src/bp-core/js/confirm.js
r11665 r12856 2 2 /* global BP_Confirm */ 3 3 4 jQuery( document ).ready(function() {4 jQuery( function() { 5 5 jQuery( '#buddypress' ).on( 'click', 'a.confirm', function() { 6 6 if ( confirm( BP_Confirm.are_you_sure ) ) { -
trunk/src/bp-core/js/cover-image.js
r12548 r12856 1 /* global bp,BP_Uploader, _, Backbone */1 /* global BP_Uploader, _, Backbone */ 2 2 3 3 window.bp = window.bp || {}; 4 4 5 ( function( exports, $ ) {5 ( function( bp, $ ) { 6 6 7 7 // Bail if not set. … … 275 275 bp.CoverImage.start(); 276 276 277 })( bp, jQuery );277 })( window.bp, jQuery ); -
trunk/src/bp-core/js/vendor/jquery-cookie.js
r12548 r12856 53 53 function read(s, converter) { 54 54 var value = config.raw ? s : parseCookieValue(s); 55 return $.isFunction(converter)? converter(value) : value;55 return typeof converter === 'function' ? converter(value) : value; 56 56 } 57 57 … … 60 60 // Write. 61 61 62 if (value !== undefined && !$.isFunction(value)) {62 if (value !== undefined && typeof value !== 'function' ) { 63 63 options = $.extend({}, config.defaults, options); 64 64 -
trunk/src/bp-core/js/vendor/jquery-scroll-to.js
r12548 r12856 3 3 4 4 /*! 5 * jQuery. ScrollTo6 * Copyright (c) 2007 -2014 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com5 * jQuery.scrollTo 6 * Copyright (c) 2007 Ariel Flesler - aflesler ○ gmail • com | https://github.com/flesler 7 7 * Licensed under MIT 8 * http ://flesler.blogspot.com/2007/10/jqueryscrollto.html9 * @projectDescription Easy element scrolling using jQuery.8 * https://github.com/flesler/jquery.scrollTo 9 * @projectDescription Lightweight, cross-browser and highly customizable animated scrolling with jQuery 10 10 * @author Ariel Flesler 11 * @version 1.4.1211 * @version 2.1.3 12 12 */ 13 14 (function(factory) { 15 // AMD. 13 ;(function(factory) { 14 'use strict'; 16 15 if (typeof define === 'function' && define.amd) { 16 // AMD 17 17 define(['jquery'], factory); 18 // CommonJS. 19 } else if (typeof exports === 'object') { 20 factory(require('jquery')); 21 // Browser globals. 18 } else if (typeof module !== 'undefined' && module.exports) { 19 // CommonJS 20 module.exports = factory(require('jquery')); 22 21 } else { 22 // Global 23 23 factory(jQuery); 24 24 } 25 }(function($) { 25 })(function($) { 26 'use strict'; 26 27 27 28 var $scrollTo = $.scrollTo = function(target, duration, settings) { … … 30 31 31 32 $scrollTo.defaults = { 32 axis: 'xy', 33 duration: parseFloat($.fn.jquery) >= 1.3 ? 0 : 1, 34 limit: true 35 }; 36 37 // Returns the element that needs to be animated to scroll the window. 38 // Kept for backwards compatibility (specially for localScroll & serialScroll). 39 $scrollTo.window = function() { 40 return $(window)._scrollable(); 41 }; 42 43 // Hack, hack, hack :) 44 // Returns the real elements to scroll (supports window/iframes, documents and regular nodes). 45 $.fn._scrollable = function() { 46 return this.map(function() { 47 var elem = this, 48 isWin = !elem.nodeName || $.inArray(elem.nodeName.toLowerCase(), ['iframe', '#document', 'html', 'body']) !== -1; 49 50 if (!isWin) { 51 return elem; 52 } 53 54 var doc = (elem.contentWindow || elem).document || elem.ownerDocument || elem; 55 56 return /webkit/i.test(navigator.userAgent) || doc.compatMode === 'BackCompat' ? 57 doc.body : 58 doc.documentElement; 59 }); 60 }; 33 axis:'xy', 34 duration: 0, 35 limit:true 36 }; 37 38 function isWin(elem) { 39 return !elem.nodeName || 40 $.inArray(elem.nodeName.toLowerCase(), ['iframe','#document','html','body']) !== -1; 41 } 42 43 function isFunction(obj) { 44 // Brought from jQuery since it's deprecated 45 return typeof obj === 'function' 46 } 61 47 62 48 $.fn.scrollTo = function(target, duration, settings) { … … 66 52 } 67 53 if (typeof settings === 'function') { 68 settings = {onAfter: settings}; 69 } 70 54 settings = { onAfter:settings }; 55 } 71 56 if (target === 'max') { 72 57 target = 9e9; … … 74 59 75 60 settings = $.extend({}, $scrollTo.defaults, settings); 76 // Speed is still recognized for backwards compatibility .61 // Speed is still recognized for backwards compatibility 77 62 duration = duration || settings.duration; 78 // Make sure the settings are given right. 79 settings.queue = settings.queue && settings.axis.length > 1; 80 81 // Let's keep the overall duration. 82 if (settings.queue) { 63 // Make sure the settings are given right 64 var queue = settings.queue && settings.axis.length > 1; 65 if (queue) { 66 // Let's keep the overall duration 83 67 duration /= 2; 84 68 } 85 86 69 settings.offset = both(settings.offset); 87 70 settings.over = both(settings.over); 88 71 89 return this._scrollable().each(function() { 90 91 // Null target yields nothing, just like jQuery does. 92 if (target === null) { 93 return; 94 } 95 96 var elem = this, 97 $elem = $(elem), 98 targ = target, toff, attr = {}, 99 win = $elem.is('html,body'); 72 return this.each(function() { 73 // Null target yields nothing, just like jQuery does 74 if (target === null) return; 75 76 var win = isWin(this), 77 elem = win ? this.contentWindow || window : this, 78 $elem = $(elem), 79 targ = target, 80 attr = {}, 81 toff; 100 82 101 83 switch (typeof targ) { 102 // A number will pass the regex .84 // A number will pass the regex 103 85 case 'number': 104 86 case 'string': … … 108 90 break; 109 91 } 110 // Relative/Absolute selector, no break! 111 targ = win ? $(targ) : $(targ, this); 112 if (!targ.length) { 113 return; 114 } 92 // Relative/Absolute selector 93 targ = win ? $(targ) : $(targ, elem); 115 94 /* falls through */ 116 95 case 'object': 117 // DOMElement / jQuery. 96 if (targ.length === 0) return; 97 // DOMElement / jQuery 118 98 if (targ.is || targ.style) { 119 // Get the real position of the target .99 // Get the real position of the target 120 100 toff = (targ = $(targ)).offset(); 121 101 } 122 102 } 123 103 124 var offset = $.isFunction(settings.offset) && settings.offset(elem, targ) || settings.offset;104 var offset = isFunction(settings.offset) && settings.offset(elem, targ) || settings.offset; 125 105 126 106 $.each(settings.axis.split(''), function(i, axis) { 127 var Pos = axis === 'x' ? 'Left' : 'Top',128 pos = Pos.toLowerCase(),129 key = 'scroll' + Pos,130 old = elem[key],131 max = $scrollTo.max(elem, axis);132 133 if (toff) { // jQuery / DOMElement.134 attr[key] = toff[pos] + (win ? 0 : old- $elem.offset()[pos]);135 136 // If it's a dom element, reduce the margin .107 var Pos = axis === 'x' ? 'Left' : 'Top', 108 pos = Pos.toLowerCase(), 109 key = 'scroll' + Pos, 110 prev = $elem[key](), 111 max = $scrollTo.max(elem, axis); 112 113 if (toff) {// jQuery / DOMElement 114 attr[key] = toff[pos] + (win ? 0 : prev - $elem.offset()[pos]); 115 116 // If it's a dom element, reduce the margin 137 117 if (settings.margin) { 138 attr[key] -= parseInt(targ.css('margin' + Pos)) || 0;139 attr[key] -= parseInt(targ.css('border' + Pos + 'Width')) || 0;118 attr[key] -= parseInt(targ.css('margin'+Pos), 10) || 0; 119 attr[key] -= parseInt(targ.css('border'+Pos+'Width'), 10) || 0; 140 120 } 141 121 142 122 attr[key] += offset[pos] || 0; 143 123 144 // Scroll to a fraction of its width/height.145 124 if (settings.over[pos]) { 146 attr[key] += targ[axis === 'x' ? 'width' : 'height']() * settings.over[pos]; 125 // Scroll to a fraction of its width/height 126 attr[key] += targ[axis === 'x'?'width':'height']() * settings.over[pos]; 147 127 } 148 128 } else { 149 129 var val = targ[pos]; 150 // Handle percentage values .130 // Handle percentage values 151 131 attr[key] = val.slice && val.slice(-1) === '%' ? 152 parseFloat(val) / 100 * max153 : val;132 parseFloat(val) / 100 * max 133 : val; 154 134 } 155 135 156 // Number or 'number' .136 // Number or 'number' 157 137 if (settings.limit && /^\d+$/.test(attr[key])) { 158 138 // Check the limits … … 160 140 } 161 141 162 // Queueing axes. 163 if (!i && settings.queue) { 164 // Don't waste time animating, if there's no need. 165 if (old !== attr[key]) { 166 // Intermediate animation. 142 // Don't waste time animating, if there's no need. 143 if (!i && settings.axis.length > 1) { 144 if (prev === attr[key]) { 145 // No animation needed 146 attr = {}; 147 } else if (queue) { 148 // Intermediate animation 167 149 animate(settings.onAfterFirst); 168 }169 // Don't animate this axis again in the next iteration.170 delete attr[key];150 // Don't animate this axis again in the next iteration. 151 attr = {}; 152 } 171 153 } 172 154 }); … … 175 157 176 158 function animate(callback) { 177 $elem.animate(attr, duration, settings.easing, callback && function() { 178 callback.call(this, targ, settings); 159 var opts = $.extend({}, settings, { 160 // The queue setting conflicts with animate() 161 // Force it to always be true 162 queue: true, 163 duration: duration, 164 complete: callback && function() { 165 callback.call(elem, targ, settings); 166 } 179 167 }); 180 }181 182 }) .end();168 $elem.animate(attr, opts); 169 } 170 }); 183 171 }; 184 172 … … 187 175 $scrollTo.max = function(elem, axis) { 188 176 var Dim = axis === 'x' ? 'Width' : 'Height', 189 scroll = 'scroll' +Dim;190 191 if (! $(elem).is('html,body')) {177 scroll = 'scroll'+Dim; 178 179 if (!isWin(elem)) 192 180 return elem[scroll] - $(elem)[Dim.toLowerCase()](); 193 }194 181 195 182 var size = 'client' + Dim, 196 html = elem.ownerDocument.documentElement, 197 body = elem.ownerDocument.body; 183 doc = elem.ownerDocument || elem.document, 184 html = doc.documentElement, 185 body = doc.body; 198 186 199 187 return Math.max(html[scroll], body[scroll]) - Math.min(html[size], body[size]); … … 201 189 202 190 function both(val) { 203 return $.isFunction(val) || typeof val === 'object' ? val : {top: val, left: val}; 204 } 205 206 // AMD requirement. 191 return isFunction(val) || $.isPlainObject(val) ? val : { top:val, left:val }; 192 } 193 194 // Add special hooks so that window scroll properties can be animated 195 $.Tween.propHooks.scrollLeft = 196 $.Tween.propHooks.scrollTop = { 197 get: function(t) { 198 return $(t.elem)[t.prop](); 199 }, 200 set: function(t) { 201 var curr = this.get(t); 202 // If interrupt is true and user scrolled, stop animating 203 if (t.options.interrupt && t._last && t._last !== curr) { 204 return $(t.elem).stop(); 205 } 206 var next = Math.round(t.now); 207 // Don't waste CPU 208 // Browsers don't render floating point scroll 209 if (curr !== next) { 210 $(t.elem)[t.prop](next); 211 t._last = this.get(t); 212 } 213 } 214 }; 215 216 // AMD requirement 207 217 return $scrollTo; 208 }) );218 }); -
trunk/src/bp-core/js/vendor/jquery.atwho.js
r12548 r12856 462 462 Controller.arrayToDefaultHash = function(data) { 463 463 var i, item, len, results; 464 if (! $.isArray(data)) {464 if (!Array.isArray(data)) { 465 465 return data; 466 466 } … … 629 629 }); 630 630 if (!$inputor.is(':focus')) { 631 $inputor. focus();632 } 633 return $inputor. change();631 $inputor.trigger( 'focus' ); 632 } 633 return $inputor.trigger( 'change' ); 634 634 }; 635 635 … … 977 977 978 978 View.prototype.visible = function() { 979 return $.expr. filters.visible(this.$el[0]);979 return $.expr.pseudos.visible(this.$el[0]); 980 980 }; 981 981 … … 1093 1093 View.prototype.render = function(list) { 1094 1094 var $li, $ul, i, item, len, li, tpl; 1095 if (!( $.isArray(list) && list.length > 0)) {1095 if (!(Array.isArray(list) && list.length > 0)) { 1096 1096 this.hide(); 1097 1097 return; -
trunk/src/bp-core/js/webcam.js
r12548 r12856 1 /* global bp,BP_Uploader, _, Backbone */1 /* global BP_Uploader, _, Backbone */ 2 2 3 3 window.bp = window.bp || {}; 4 4 5 ( function( ) {5 ( function( bp ) { 6 6 7 7 // Bail if not set. … … 318 318 bp.WebCam.start(); 319 319 320 })( bp, jQuery);320 })( window.bp ); -
trunk/src/bp-core/js/widget-members.js
r10793 r12856 1 jQuery( document).ready(function() {1 jQuery( function() { 2 2 member_widget_click_handler(); 3 3 -
trunk/src/bp-templates/bp-legacy/js/buddypress.js
r12833 r12856 1 1 /* jshint undef: false, unused:false */ 2 /* @version 3.0.0 */ 2 /* @version 1.7.0 */ 3 /* @version 8.0.0 */ 3 4 // AJAX Functions 4 5 var jq = jQuery; … … 13 14 var directoryPreferences = {}; 14 15 15 jq( document).ready(function() {16 jq( function() { 16 17 var activity_oldestpage = 1; 17 18 … … 42 43 } ); 43 44 44 $whats_new.val(''). focus().val( $member_nicename );45 $whats_new.val('').trigger( 'focus' ).val( $member_nicename ); 45 46 } else { 46 47 jq('#whats-new-options').hide(); … … 134 135 } ); 135 136 136 form.find( '*' ).each( function( ) {137 if ( jq.nodeName( this, 'textarea' ) || jq.nodeName( this, 'input' )) {138 jq( this).prop( 'disabled', true );137 form.find( '*' ).each( function( i, elem ) { 138 if ( elem.nodeName.toLowerCase() === 'textarea' || elem.nodeName.toLowerCase() ==='input' ) { 139 jq( elem ).prop( 'disabled', true ); 139 140 } 140 141 } ); … … 185 186 186 187 jq.post( ajaxurl, post_data, function( response ) { 187 form.find( '*' ).each( function( ) {188 if ( jq.nodeName( this, 'textarea' ) || jq.nodeName( this, 'input' )) {189 jq( this).prop( 'disabled', false );188 form.find( '*' ).each( function( i, elem ) { 189 if ( elem.nodeName.toLowerCase() === 'textarea' || elem.nodeName.toLowerCase() ==='input' ) { 190 jq( elem ).prop( 'disabled', false ); 190 191 } 191 } );192 } ); 192 193 193 194 /* Check for errors and append if found. */ … … 583 584 easing:'swing' 584 585 } ); 585 jq('#ac-form-' + ids[2] + ' textarea'). focus();586 jq('#ac-form-' + ids[2] + ' textarea').trigger( 'focus' ); 586 587 587 588 return false; … … 1125 1126 'group_id': jq('#group_id').val() 1126 1127 }, 1127 function( response)1128 function() 1128 1129 { 1129 1130 if ( invites_new_template ) { … … 1383 1384 1384 1385 // toggle "Blog Details" block whenever checkbox is checked 1385 blog_checked. change(function() {1386 blog_checked.on( 'change', function() { 1386 1387 jq('#blog-details').toggle(); 1387 1388 }); -
trunk/src/bp-templates/bp-legacy/js/password-verify.js
r12752 r12856 1 1 /* jshint undef: false */ 2 /* @version 3.0.0 */ 2 /* @since 1.7.0 */ 3 /* @version 8.0.0 */ 3 4 /* Password Verify */ 4 5 ( function( $ ){ … … 42 43 43 44 // Bind check_pass_strength to keyup events in the password fields 44 $( document ).ready(function() {45 $( '.password-entry' ).val( '' ). keyup(check_pass_strength );46 $( '.password-entry-confirm' ).val( '' ). keyup(check_pass_strength );45 $( function() { 46 $( '.password-entry' ).val( '' ).on( 'keyup', check_pass_strength ); 47 $( '.password-entry-confirm' ).val( '' ).on( 'keyup', check_pass_strength ); 47 48 }); 48 49 -
trunk/src/bp-templates/bp-nouveau/js/buddypress-activity-post-form.js
r12406 r12856 1 /* global bp,BP_Nouveau, _, Backbone */1 /* global BP_Nouveau, _, Backbone */ 2 2 /* @since 3.0.0 */ 3 /* @version 5.0.0 */3 /* @version 8.0.0 */ 4 4 window.wp = window.wp || {}; 5 5 window.bp = window.bp || {}; 6 6 7 ( function( exports, $ ) {7 ( function( bp, $ ) { 8 8 bp.Nouveau = bp.Nouveau || {}; 9 9 … … 786 786 bp.Nouveau.Activity.postForm.start(); 787 787 788 } )( bp, jQuery );788 } )( window.bp, jQuery ); -
trunk/src/bp-templates/bp-nouveau/js/buddypress-activity.js
r12805 r12856 1 1 /* jshint browser: true */ 2 /* global bp,BP_Nouveau */2 /* global BP_Nouveau */ 3 3 /* @since 3.0.0 */ 4 /* @version 7.0.0 */4 /* @version 8.0.0 */ 5 5 window.bp = window.bp || {}; 6 6 7 ( function( exports, $ ) {7 ( function( bp, $ ) { 8 8 9 9 // Bail if not set … … 75 75 // Activity actions 76 76 $( '#buddypress [data-bp-list="activity"]' ).on( 'click', '.activity-item', bp.Nouveau, this.activityActions ); 77 $( document ). keydown(this.commentFormAction );77 $( document ).on( 'keydown', this.commentFormAction ); 78 78 }, 79 79 … … 701 701 } ); 702 702 703 $( '#ac-form-' + activity_id + ' textarea' ). focus();703 $( '#ac-form-' + activity_id + ' textarea' ).trigger( 'focus' ); 704 704 } 705 705 … … 825 825 } 826 826 827 keyCode = ( event.keyCode ) ? event.keyCode : event.which;827 keyCode = ( event.keyCode ) ? event.keyCode : event.which; 828 828 829 829 if ( 27 === keyCode && false === event.ctrlKey ) { … … 840 840 bp.Nouveau.Activity.start(); 841 841 842 } )( bp, jQuery );842 } )( window.bp, jQuery ); -
trunk/src/bp-templates/bp-nouveau/js/buddypress-group-invites.js
r12170 r12856 1 /* global wp, bp, BP_Nouveau, _, Backbone */ 2 /* @version 4.0.0 */ 1 /* global wp, BP_Nouveau, _, Backbone */ 2 /* @since 3.0.0 */ 3 /* @version 8.0.0 */ 3 4 window.wp = window.wp || {}; 4 5 window.bp = window.bp || {}; 5 6 6 ( function( exports, $ ) {7 ( function( bp, $ ) { 7 8 8 9 // Bail if not set … … 845 846 bp.Nouveau.GroupInvites.start(); 846 847 847 } )( bp, jQuery );848 } )( window.bp, jQuery ); -
trunk/src/bp-templates/bp-nouveau/js/buddypress-messages.js
r12525 r12856 1 /* global wp, bp,BP_Nouveau, _, Backbone, tinymce, tinyMCE */1 /* global wp, BP_Nouveau, _, Backbone, tinymce, tinyMCE */ 2 2 /* jshint devel: true */ 3 3 /* @version 3.1.0 */ … … 5 5 window.bp = window.bp || {}; 6 6 7 ( function( exports, $ ) {7 ( function( bp, $ ) { 8 8 9 9 // Bail if not set. … … 107 107 } else { 108 108 // Mentions isn't available, so bail. 109 if ( _.isEmpty( exports.mentions ) ) {109 if ( _.isEmpty( bp.mentions ) ) { 110 110 return; 111 111 } … … 1430 1430 bp.Nouveau.Messages.start(); 1431 1431 1432 } )( bp, jQuery );1432 } )( window.bp, jQuery ); -
trunk/src/bp-templates/bp-nouveau/js/buddypress-notifications.js
r12525 r12856 1 /* global bp, BP_Nouveau */ 2 /* @version 3.0.0 */ 1 /* global BP_Nouveau */ 2 /* @since 3.0.0 */ 3 /* @version 8.0.0 */ 3 4 window.bp = window.bp || {}; 4 5 5 ( function( exports, $ ) {6 ( function( bp, $ ) { 6 7 7 8 // Bail if not set. … … 138 139 bp.Nouveau.Notifications.start(); 139 140 140 } )( bp, jQuery );141 } )( window.bp, jQuery ); -
trunk/src/bp-templates/bp-nouveau/js/buddypress-nouveau.js
r12773 r12856 1 /* global wp, bp,BP_Nouveau, JSON */1 /* global wp, BP_Nouveau, JSON */ 2 2 /* jshint devel: true */ 3 3 /* jshint browser: true */ 4 4 /* @since 3.0.0 */ 5 /* @version 7.0.0 */5 /* @version 8.0.0 */ 6 6 window.wp = window.wp || {}; 7 7 window.bp = window.bp || {}; 8 8 9 ( function( exports, $ ) {9 ( function( bp, $ ) { 10 10 11 11 // Bail if not set. … … 825 825 bp.Nouveau.start(); 826 826 827 } )( bp, jQuery );827 } )( window.bp, jQuery ); -
trunk/src/bp-templates/bp-nouveau/js/buddypress-xprofile.js
r12526 r12856 1 /* global bp,BP_Nouveau */2 /* @ version3.0.0 */3 window.bp = window.bp || {}; 1 /* global BP_Nouveau */ 2 /* @since 3.0.0 */ 3 /* @version 8.0.0 */ 4 4 5 ( function( exports,$ ) {5 ( function( $ ) { 6 6 7 7 // Bail if not set. … … 46 46 } ); 47 47 48 $( '#profile-edit-form input:not(:submit), #profile-edit-form textarea, #profile-edit-form select, #signup_form input:not(:submit), #signup_form textarea, #signup_form select' ). change(function() {48 $( '#profile-edit-form input:not(:submit), #profile-edit-form textarea, #profile-edit-form select, #signup_form input:not(:submit), #signup_form textarea, #signup_form select' ).on( 'change', function() { 49 49 var shouldconfirm = true; 50 50 … … 77 77 } 78 78 }; 79 } )( bp,jQuery );79 } )( jQuery ); -
trunk/src/bp-templates/bp-nouveau/js/customizer.js
r12526 r12856 1 1 /* global _ */ 2 /* @since 3.0.0 */ 2 3 /* @version 3.0.0 */ 3 4 window.wp = window.wp || {}; -
trunk/src/bp-templates/bp-nouveau/js/password-verify.js
r12752 r12856 3 3 /* global pwsL10n */ 4 4 /* @since 3.0.0 */ 5 /* @version 5.0.0 */5 /* @version 8.0.0 */ 6 6 ( function( $ ){ 7 7 /** … … 49 49 50 50 // Bind check_pass_strength to keyup events in the password fields. 51 $( document ).ready(function() {51 $( function() { 52 52 $( '.password-entry' ).val( '' ).keyup( check_pass_strength ); 53 53 $( '.password-entry-confirm' ).val( '' ).keyup( check_pass_strength );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)