Showing 3,486 of 3,486 total issues
Function bindStore
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindStore : function(store, initial){
if(!initial && this.store){
if(store !== this.store && this.store.autoDestroy){
this.store.destroy();
}else{
Function buildExtractors
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildExtractors : function() {
if(this.ef){
return;
}
var s = this.meta, Record = this.recordType,
Function onWrite
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
proxy.onWrite = proxy.onWrite.createInterceptor(function(action, o, response, rs) {
var reader = o.reader;
var res = new Ext.data.Response({
action: action,
raw: response
Function singleSort
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
singleSort: function(fieldName, dir) {
var field = this.fields.get(fieldName);
if (!field) {
return false;
}
Function mask
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mask : function(msg, msgCls) {
var me = this,
dom = me.dom,
dh = Ext.DomHelper,
EXTELMASKMSG = "ext-el-mask-msg",
Function constructor
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor : function(attributes){
attributes = attributes || {};
if(Ext.isString(attributes)){
attributes = {text: attributes};
}
Function filterBy
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
filterBy : function(fn, scope, startNode){
startNode = startNode || this.tree.root;
if(this.autoClear){
this.clear();
}
Function updateToolbar
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateToolbar: function(){
if(this.readOnly){
return;
}
Function onSetValue
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onSetValue: function(id, value){
if(arguments.length == 1){
if(Ext.isArray(id)){
Ext.each(id, function(val, idx){
if (Ext.isObject(val) && val.setValue){ // array of checkbox components to be checked
Function initEvents
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initEvents : function(){
Ext.Window.superclass.initEvents.call(this);
if(this.animateTarget){
this.setAnimateTarget(this.animateTarget);
}
Function insertRows
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
insertRows : function(dm, firstRow, lastRow, isUpdate) {
var last = dm.getCount() - 1;
if( !isUpdate && firstRow === 0 && lastRow >= last) {
this.fireEvent('beforerowsinserted', this, firstRow, lastRow);
this.refresh();
Function parseAnchor
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parseAnchor : function(a, start, cstart) {
if (a && a != 'none') {
var last;
// standard anchor
if (this.parseAnchorRE.test(a)) {
Function initTab
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initTab : function(item, index){
var before = this.strip.dom.childNodes[index],
p = this.getTemplateArgs(item),
el = before ?
this.itemTpl.insertBefore(before, p) :
Function render
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render : function(ct, p){
Ext.layout.BorderLayout.SplitRegion.superclass.render.call(this, ct, p);
var ps = this.position;
Function onStartProxyDrag
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onStartProxyDrag : function(x, y){
this.fireEvent("beforeresize", this);
this.overlay = Ext.DomHelper.append(document.body, {cls: "x-drag-overlay", html: " "}, true);
this.overlay.unselectable();
this.overlay.setSize(Ext.lib.Dom.getViewWidth(true), Ext.lib.Dom.getViewHeight(true));
Function setConfig
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setConfig : function(config, initial) {
var i, c, len;
if (!initial) { // cleanup
delete this.totalWidth;
Function load
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load: function(fileList, callback, scope, preserveOrder) {
var scope = scope || this,
head = document.getElementsByTagName("head")[0],
fragment = document.createDocumentFragment(),
numFiles = fileList.length,
Function init
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function( selector, context ) {
// Make sure that a selection was provided
selector = selector || document;
// Handle $(DOMElement)
Function initTab
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initTab : function(item, index){
var before = this.strip.dom.childNodes[index],
p = this.getTemplateArgs(item),
el = before ?
this.itemTpl.insertBefore(before, p) :
Method import
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def import
fields = [ :last_name, :first_name, :display_name, :jurisdiction, :mobile, :fax, :phone, :email ]
csvfile = params[:users][:csvfile]
users = []