Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/jquery/ui
File: resizable.js
that.size.height = that.parentData.height - hoset;
[1000] Fix | Delete
if ( pRatio ) {
[1001] Fix | Delete
that.size.width = that.size.height * that.aspectRatio;
[1002] Fix | Delete
continueResize = false;
[1003] Fix | Delete
}
[1004] Fix | Delete
}
[1005] Fix | Delete
[1006] Fix | Delete
if ( !continueResize ) {
[1007] Fix | Delete
that.position.left = that.prevPosition.left;
[1008] Fix | Delete
that.position.top = that.prevPosition.top;
[1009] Fix | Delete
that.size.width = that.prevSize.width;
[1010] Fix | Delete
that.size.height = that.prevSize.height;
[1011] Fix | Delete
}
[1012] Fix | Delete
},
[1013] Fix | Delete
[1014] Fix | Delete
stop: function() {
[1015] Fix | Delete
var that = $( this ).resizable( "instance" ),
[1016] Fix | Delete
o = that.options,
[1017] Fix | Delete
co = that.containerOffset,
[1018] Fix | Delete
cop = that.containerPosition,
[1019] Fix | Delete
ce = that.containerElement,
[1020] Fix | Delete
helper = $( that.helper ),
[1021] Fix | Delete
ho = helper.offset(),
[1022] Fix | Delete
w = helper.outerWidth() - that.sizeDiff.width,
[1023] Fix | Delete
h = helper.outerHeight() - that.sizeDiff.height;
[1024] Fix | Delete
[1025] Fix | Delete
if ( that._helper && !o.animate && ( /relative/ ).test( ce.css( "position" ) ) ) {
[1026] Fix | Delete
$( this ).css( {
[1027] Fix | Delete
left: ho.left - cop.left - co.left,
[1028] Fix | Delete
width: w,
[1029] Fix | Delete
height: h
[1030] Fix | Delete
} );
[1031] Fix | Delete
}
[1032] Fix | Delete
[1033] Fix | Delete
if ( that._helper && !o.animate && ( /static/ ).test( ce.css( "position" ) ) ) {
[1034] Fix | Delete
$( this ).css( {
[1035] Fix | Delete
left: ho.left - cop.left - co.left,
[1036] Fix | Delete
width: w,
[1037] Fix | Delete
height: h
[1038] Fix | Delete
} );
[1039] Fix | Delete
}
[1040] Fix | Delete
}
[1041] Fix | Delete
} );
[1042] Fix | Delete
[1043] Fix | Delete
$.ui.plugin.add( "resizable", "alsoResize", {
[1044] Fix | Delete
[1045] Fix | Delete
start: function() {
[1046] Fix | Delete
var that = $( this ).resizable( "instance" ),
[1047] Fix | Delete
o = that.options;
[1048] Fix | Delete
[1049] Fix | Delete
$( o.alsoResize ).each( function() {
[1050] Fix | Delete
var el = $( this );
[1051] Fix | Delete
el.data( "ui-resizable-alsoresize", {
[1052] Fix | Delete
width: parseFloat( el.css( "width" ) ), height: parseFloat( el.css( "height" ) ),
[1053] Fix | Delete
left: parseFloat( el.css( "left" ) ), top: parseFloat( el.css( "top" ) )
[1054] Fix | Delete
} );
[1055] Fix | Delete
} );
[1056] Fix | Delete
},
[1057] Fix | Delete
[1058] Fix | Delete
resize: function( event, ui ) {
[1059] Fix | Delete
var that = $( this ).resizable( "instance" ),
[1060] Fix | Delete
o = that.options,
[1061] Fix | Delete
os = that.originalSize,
[1062] Fix | Delete
op = that.originalPosition,
[1063] Fix | Delete
delta = {
[1064] Fix | Delete
height: ( that.size.height - os.height ) || 0,
[1065] Fix | Delete
width: ( that.size.width - os.width ) || 0,
[1066] Fix | Delete
top: ( that.position.top - op.top ) || 0,
[1067] Fix | Delete
left: ( that.position.left - op.left ) || 0
[1068] Fix | Delete
};
[1069] Fix | Delete
[1070] Fix | Delete
$( o.alsoResize ).each( function() {
[1071] Fix | Delete
var el = $( this ), start = $( this ).data( "ui-resizable-alsoresize" ), style = {},
[1072] Fix | Delete
css = el.parents( ui.originalElement[ 0 ] ).length ?
[1073] Fix | Delete
[ "width", "height" ] :
[1074] Fix | Delete
[ "width", "height", "top", "left" ];
[1075] Fix | Delete
[1076] Fix | Delete
$.each( css, function( i, prop ) {
[1077] Fix | Delete
var sum = ( start[ prop ] || 0 ) + ( delta[ prop ] || 0 );
[1078] Fix | Delete
if ( sum && sum >= 0 ) {
[1079] Fix | Delete
style[ prop ] = sum || null;
[1080] Fix | Delete
}
[1081] Fix | Delete
} );
[1082] Fix | Delete
[1083] Fix | Delete
el.css( style );
[1084] Fix | Delete
} );
[1085] Fix | Delete
},
[1086] Fix | Delete
[1087] Fix | Delete
stop: function() {
[1088] Fix | Delete
$( this ).removeData( "ui-resizable-alsoresize" );
[1089] Fix | Delete
}
[1090] Fix | Delete
} );
[1091] Fix | Delete
[1092] Fix | Delete
$.ui.plugin.add( "resizable", "ghost", {
[1093] Fix | Delete
[1094] Fix | Delete
start: function() {
[1095] Fix | Delete
[1096] Fix | Delete
var that = $( this ).resizable( "instance" ), cs = that.size;
[1097] Fix | Delete
[1098] Fix | Delete
that.ghost = that.originalElement.clone();
[1099] Fix | Delete
that.ghost.css( {
[1100] Fix | Delete
opacity: 0.25,
[1101] Fix | Delete
display: "block",
[1102] Fix | Delete
position: "relative",
[1103] Fix | Delete
height: cs.height,
[1104] Fix | Delete
width: cs.width,
[1105] Fix | Delete
margin: 0,
[1106] Fix | Delete
left: 0,
[1107] Fix | Delete
top: 0
[1108] Fix | Delete
} );
[1109] Fix | Delete
[1110] Fix | Delete
that._addClass( that.ghost, "ui-resizable-ghost" );
[1111] Fix | Delete
[1112] Fix | Delete
// DEPRECATED
[1113] Fix | Delete
// TODO: remove after 1.12
[1114] Fix | Delete
if ( $.uiBackCompat !== false && typeof that.options.ghost === "string" ) {
[1115] Fix | Delete
[1116] Fix | Delete
// Ghost option
[1117] Fix | Delete
that.ghost.addClass( this.options.ghost );
[1118] Fix | Delete
}
[1119] Fix | Delete
[1120] Fix | Delete
that.ghost.appendTo( that.helper );
[1121] Fix | Delete
[1122] Fix | Delete
},
[1123] Fix | Delete
[1124] Fix | Delete
resize: function() {
[1125] Fix | Delete
var that = $( this ).resizable( "instance" );
[1126] Fix | Delete
if ( that.ghost ) {
[1127] Fix | Delete
that.ghost.css( {
[1128] Fix | Delete
position: "relative",
[1129] Fix | Delete
height: that.size.height,
[1130] Fix | Delete
width: that.size.width
[1131] Fix | Delete
} );
[1132] Fix | Delete
}
[1133] Fix | Delete
},
[1134] Fix | Delete
[1135] Fix | Delete
stop: function() {
[1136] Fix | Delete
var that = $( this ).resizable( "instance" );
[1137] Fix | Delete
if ( that.ghost && that.helper ) {
[1138] Fix | Delete
that.helper.get( 0 ).removeChild( that.ghost.get( 0 ) );
[1139] Fix | Delete
}
[1140] Fix | Delete
}
[1141] Fix | Delete
[1142] Fix | Delete
} );
[1143] Fix | Delete
[1144] Fix | Delete
$.ui.plugin.add( "resizable", "grid", {
[1145] Fix | Delete
[1146] Fix | Delete
resize: function() {
[1147] Fix | Delete
var outerDimensions,
[1148] Fix | Delete
that = $( this ).resizable( "instance" ),
[1149] Fix | Delete
o = that.options,
[1150] Fix | Delete
cs = that.size,
[1151] Fix | Delete
os = that.originalSize,
[1152] Fix | Delete
op = that.originalPosition,
[1153] Fix | Delete
a = that.axis,
[1154] Fix | Delete
grid = typeof o.grid === "number" ? [ o.grid, o.grid ] : o.grid,
[1155] Fix | Delete
gridX = ( grid[ 0 ] || 1 ),
[1156] Fix | Delete
gridY = ( grid[ 1 ] || 1 ),
[1157] Fix | Delete
ox = Math.round( ( cs.width - os.width ) / gridX ) * gridX,
[1158] Fix | Delete
oy = Math.round( ( cs.height - os.height ) / gridY ) * gridY,
[1159] Fix | Delete
newWidth = os.width + ox,
[1160] Fix | Delete
newHeight = os.height + oy,
[1161] Fix | Delete
isMaxWidth = o.maxWidth && ( o.maxWidth < newWidth ),
[1162] Fix | Delete
isMaxHeight = o.maxHeight && ( o.maxHeight < newHeight ),
[1163] Fix | Delete
isMinWidth = o.minWidth && ( o.minWidth > newWidth ),
[1164] Fix | Delete
isMinHeight = o.minHeight && ( o.minHeight > newHeight );
[1165] Fix | Delete
[1166] Fix | Delete
o.grid = grid;
[1167] Fix | Delete
[1168] Fix | Delete
if ( isMinWidth ) {
[1169] Fix | Delete
newWidth += gridX;
[1170] Fix | Delete
}
[1171] Fix | Delete
if ( isMinHeight ) {
[1172] Fix | Delete
newHeight += gridY;
[1173] Fix | Delete
}
[1174] Fix | Delete
if ( isMaxWidth ) {
[1175] Fix | Delete
newWidth -= gridX;
[1176] Fix | Delete
}
[1177] Fix | Delete
if ( isMaxHeight ) {
[1178] Fix | Delete
newHeight -= gridY;
[1179] Fix | Delete
}
[1180] Fix | Delete
[1181] Fix | Delete
if ( /^(se|s|e)$/.test( a ) ) {
[1182] Fix | Delete
that.size.width = newWidth;
[1183] Fix | Delete
that.size.height = newHeight;
[1184] Fix | Delete
} else if ( /^(ne)$/.test( a ) ) {
[1185] Fix | Delete
that.size.width = newWidth;
[1186] Fix | Delete
that.size.height = newHeight;
[1187] Fix | Delete
that.position.top = op.top - oy;
[1188] Fix | Delete
} else if ( /^(sw)$/.test( a ) ) {
[1189] Fix | Delete
that.size.width = newWidth;
[1190] Fix | Delete
that.size.height = newHeight;
[1191] Fix | Delete
that.position.left = op.left - ox;
[1192] Fix | Delete
} else {
[1193] Fix | Delete
if ( newHeight - gridY <= 0 || newWidth - gridX <= 0 ) {
[1194] Fix | Delete
outerDimensions = that._getPaddingPlusBorderDimensions( this );
[1195] Fix | Delete
}
[1196] Fix | Delete
[1197] Fix | Delete
if ( newHeight - gridY > 0 ) {
[1198] Fix | Delete
that.size.height = newHeight;
[1199] Fix | Delete
that.position.top = op.top - oy;
[1200] Fix | Delete
} else {
[1201] Fix | Delete
newHeight = gridY - outerDimensions.height;
[1202] Fix | Delete
that.size.height = newHeight;
[1203] Fix | Delete
that.position.top = op.top + os.height - newHeight;
[1204] Fix | Delete
}
[1205] Fix | Delete
if ( newWidth - gridX > 0 ) {
[1206] Fix | Delete
that.size.width = newWidth;
[1207] Fix | Delete
that.position.left = op.left - ox;
[1208] Fix | Delete
} else {
[1209] Fix | Delete
newWidth = gridX - outerDimensions.width;
[1210] Fix | Delete
that.size.width = newWidth;
[1211] Fix | Delete
that.position.left = op.left + os.width - newWidth;
[1212] Fix | Delete
}
[1213] Fix | Delete
}
[1214] Fix | Delete
}
[1215] Fix | Delete
[1216] Fix | Delete
} );
[1217] Fix | Delete
[1218] Fix | Delete
return $.ui.resizable;
[1219] Fix | Delete
[1220] Fix | Delete
} );
[1221] Fix | Delete
[1222] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function