Showing 3,486 of 3,486 total issues
Function constructor
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function(config){
Ext.apply(this, config);
var index = new Talho.Admin.Apps.view.Index({
listeners: {
Function ATTR
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ATTR: function(elem, match){
var name = match[1],
result = Expr.attrHandle[ name ] ?
Expr.attrHandle[ name ]( elem ) :
elem[ name ] != null ?
Function constructor
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function(config){
Ext.apply(this, config);
var blank_store = new Ext.data.Store({});
Function show_message
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show_message: function(json){
var fm = this.getPanel().getEl().select("#flash-msg").first();
var msg = "";
if (json.flash != null) {
msg += json.flash;
Function fn
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fn(m, name, format, args, math){
if(name.substr(0, 4) == 'xtpl'){
return "'"+ sep +'this.applySubTemplate('+name.substr(4)+', values, parent, xindex, xcount)'+sep+"'";
}
var v;
Function constructor
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function(config){
this.devices_control = new Talho.ux.DevicesControl(config.url + ".json", this);
this.infobox = new Ext.Container({
layout: 'column',
Function isOverTarget
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
isOverTarget: function(pt, oTarget, intersect) {
// use cache if available
var loc = this.locationCache[oTarget.id];
if (!loc || !this.useCache) {
loc = this.getLocation(oTarget);
Function insertSibling
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
insertSibling: function(el, where, returnDom){
var me = this,
rt,
isAfter = (where || 'before').toLowerCase() == 'after',
insertEl;
Function doRequest
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
doRequest : function(action, rs, params, reader, cb, scope, arg) {
var o = {
method: (this.api[action]) ? this.api[action]['method'] : undefined,
request: {
callback : cb,
Function expand
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
expand : function(deep, anim, callback, scope){
if(!this.expanded){
if(this.fireEvent('beforeexpand', this, deep, anim) === false){
return;
}
Function collapse
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
collapse : function(deep, anim, callback, scope){
if(this.expanded && !this.isHiddenRoot()){
if(this.fireEvent('beforecollapse', this, deep, anim) === false){
return;
}
Function createCSS
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createCSS(sel, decl, media, newStyle) {
if (ua.ie && ua.mac) { return; }
var h = doc.getElementsByTagName("head")[0];
if (!h) { return; } // to also support badly authored HTML pages that lack a head element
var m = (media && typeof media == "string") ? media : "screen";
Function doLayout
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
doLayout : function(shallow, force){
var rendered = this.rendered,
forceLayout = force || this.forceLayout;
if(this.collapsed || !this.canLayout()){
Function afterShow
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
afterShow : function(isAnim){
if (this.isDestroyed){
return false;
}
this.proxy.hide();
Function expand
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
expand : function(){
if(this.isExpanded() || !this.hasFocus){
return;
}
Function onRender
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onRender : function(ct, position){
if(!this.el){
var cfg = this.getAutoCreate();
if(!cfg.name){
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render : function(ct, p){
this.panel = p;
p.el.enableDisplayMode();
this.targetEl = ct;
this.el = p.el;
Function setActiveTab
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setActiveTab : function(item){
item = this.getComponent(item);
if(this.fireEvent('beforetabchange', this, item, this.activeTab) === false){
return;
}
Function renderItem
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderItem : function(c, position, target){
if (!this.itemTpl) {
this.itemTpl = Ext.layout.MenuLayout.prototype.itemTpl = new Ext.XTemplate(
'<li id="{itemId}" class="{itemCls}">',
'<tpl if="needsIcon">',
Function renderVerticalRows
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderVerticalRows: function() {
var headers = this.buildHeaders(),
colCount = headers.length,
rowCells = [],
rows = [],