Created
August 7, 2015 16:33
-
-
Save LinzardMac/bbad4ad845b17fb62797 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp.media.view.AttachmentCompat.prototype.events['change {all selectors found in the if statement below}'] = 'save'; | |
if ( .name.length > 2 && '[]' == .name.substr( pair.name.length - 2 ) ) { | |
var pairName = .name.substr( 0, .name.length - 2 ); | |
if ( pairName in data ) { | |
data[ pairName ] += ',' + .value; | |
} else { | |
data[ pairName ] = .value; | |
} | |
} else { | |
data[ .name ] = .value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment