Showing 5,566 of 7,504 total issues
Function clonePosition
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clonePosition: function(element, source) {
var options = Object.extend({
setLeft: true,
setTop: true,
setWidth: true,
Function extend
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Element.extend = (function() {
if (Prototype.BrowserFeatures.SpecificElementExtensions)
return Prototype.K;
var Methods = { }, ByTag = Element.Methods.ByTag;
Function clickShortlink
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clickShortlink = function(e) {
var i, l, node,
t = e.target || e.srcElement;
// Make t the shortlink menu item, or return.
Function insert
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Element.Methods.insert = function(element, insertions) {
element = $(element);
if (Object.isString(insertions) || Object.isNumber(insertions) ||
Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
Function refresh
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refresh: function() {
var node, attached, container, id;
if ( this.browser ) {
node = this.browser[0];
Function refreshEditor
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refreshEditor : function(postid, nonce, callback) {
var t = this, data, img;
t.toggleEditor(postid, 1);
data = {
Function end
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
end: function(name) {
if (name == "video" && updateAll) {
for (var index = 1; index <= 2; index++) {
if (data["source" + index]) {
var attrs = [];
Function addToolbar
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addToolbar( node ) {
var rectangle, toolbarHtml, toolbar, left,
dom = editor.dom;
removeToolbar();
Function extend
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Element.extend = (function() {
if (Prototype.BrowserFeatures.SpecificElementExtensions)
return Prototype.K;
var Methods = { }, ByTag = Element.Methods.ByTag;
Function insert
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Element.Methods.insert = function(element, insertions) {
element = $(element);
if (Object.isString(insertions) || Object.isNumber(insertions) ||
Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
Function Selection
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
{return{x:a[0],y:a[1],x2:a[2],y2:a[3],w:a[2]-a[0],h:a[3]-a[1]};};return{flipCoords:flipCoords,setPressed:setPressed,setCurrent:setCurrent,getOffset:getOffset,moveOffset:moveOffset,getCorner:getCorner,getFixed:getFixed};}();var Selection=function()
{var start,end,dragmode,awake,hdep=370;var borders={};var handle={};var seehandles=false;var hhs=options.handleOffset;if(options.drawBorders){borders={top:insertBorder('hline').css('top',$.browser.msie?px(-1):px(0)),bottom:insertBorder('hline'),left:insertBorder('vline'),right:insertBorder('vline')};}
if(options.dragEdges){handle.t=insertDragbar('n');handle.b=insertDragbar('s');handle.r=insertDragbar('e');handle.l=insertDragbar('w');}
options.sideHandles&&createHandles(['n','s','e','w']);options.cornerHandles&&createHandles(['sw','nw','ne','se']);function insertBorder(type)
{var jq=$('<div />').css({position:'absolute',opacity:options.borderOpacity}).addClass(cssClass(type));$img_holder.append(jq);return jq;};function dragDiv(ord,zi)
Function getElementsByClassName
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
if (!document.getElementsByClassName) document.getElementsByClassName = function(instanceMethods){
function iter(name) {
return name.blank() ? null : "[contains(concat(' ', @class, ' '), ' " + name + " ')]";
}
Function clonePosition
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clonePosition: function(element, source) {
var options = Object.extend({
setLeft: true,
setTop: true,
setWidth: true,
Function uploadError
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function uploadError(fileObj, errorCode, message) {
switch (errorCode) {
case SWFUpload.UPLOAD_ERROR.MISSING_UPLOAD_URL:
wpFileError(fileObj, swfuploadL10n.missing_upload_url);
Function set
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
set: function( id, view, options ) {
var priority, views, index;
options = options || {};
Function initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(element) {
this.element = $(element);
if (!this.element) throw(Effect._elementDoesNotExistError);
var options = Object.extend({
style: { }
Function flash
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
flash: function(params, complete) {
$(params.next).css({
opacity: 0,
left: 0
});
Function hide
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hide : function( elem, speed, callback ) {
callback = callback || F;
var $elem = $(elem);
Function startDrag
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
startDrag: function(event) {
this.dragging = true;
if(!this.delta)
this.delta = this.currentDelta();
Function initSettings
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SWFUpload.prototype.initSettings = (function (oldInitSettings) {
return function () {
if (typeof(oldInitSettings) === "function") {
oldInitSettings.call(this);
}