Don't lose the upload tab. Props mdawaffe. fixes #5390
git-svn-id: http://svn.automattic.com/wordpress/trunk@6344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
596dc0ac87
commit
90fc94a73d
|
@ -5,17 +5,15 @@ addLoadEvent( function() {
|
|||
tab: '',
|
||||
postID: 0,
|
||||
|
||||
toQueryParams: function(qryStrOrig) {
|
||||
var params = new Object();
|
||||
var qryStr = qryStrOrig;
|
||||
var i = 0;
|
||||
do {
|
||||
params[qryStr.split("=")[0].replace(/&/, "")] = ( qryStr.split("=")[1] ) ? qryStr.split("=")[1].split(/&|$/)[0] : '';
|
||||
qryStr = ( qryStr.split("=")[1] ) ? qryStr.split(qryStr.split("=")[1].split(/&|$/)[0])[1] : '';
|
||||
i++;
|
||||
toQueryParams: function( s ) {
|
||||
var r = {}; if ( !s ) { return r; }
|
||||
var q = s.split('?'); if ( q[1] ) { s = q[1]; }
|
||||
var pp = s.split('&');
|
||||
for ( var i in pp ) {
|
||||
var p = pp[i].split('=');
|
||||
r[p[0]] = p[1];
|
||||
}
|
||||
while(i < (qryStrOrig.split("=").length - 1));
|
||||
return params;
|
||||
return r;
|
||||
},
|
||||
|
||||
toQueryString: function(params) {
|
||||
|
|
Loading…
Reference in New Issue