Sha256: d4ec87b4cd15cde5b2b40292a6170789b0f0292792fd1c1f9abba685da76867c

Contents?: true

Size: 1.19 KB

Versions: 9

Compression:

Stored size: 1.19 KB

Contents

Ext.ns("Netzke.mixins.Basepack");
Ext.ns("Ext.ux.grid");

Ext.util.Format.mask = function(v){
  return "********";
};

Ext.define('Ext.ux.form.TriCheckbox', {
  extend: 'Ext.form.field.ComboBox',
  alias: 'widget.tricheckbox',
  store: [[true, "Yes"], [false, "No"]],
  forceSelection: true
});

// Fix race condition with Ext JS 5.1.0 (while testing)
// The error was: "Ext.EventObject is undefined"
// Looks like Ext.EventObject is a legacy artifact in Ext JS 5, as it can be found only twice in the whole code base,
// so, it probably gets removed in one of the next releases.
Ext.override(Ext.view.BoundList, {
  onHide: function() {
    var inputEl = this.pickerField.inputEl.dom;
    if (Ext.Element.getActiveElement() !== inputEl) {
      inputEl.focus();
    }
    this.callParent(arguments);
  },
});

Netzke.isModelDefined = function(name) {
  return !!(Netzke.models || {})[name];
};

Netzke.modelName = function(name){
  return "Netzke.models." + name;
};

// Fix 2-digit precision in the numeric filter
Ext.define('Ext.grid.filters.filter.Number', {
  override: 'Ext.grid.filters.filter.Number',
  getItemDefaults: function() {
    return Ext.apply(this.itemDefaults, { decimalPrecision: 10 });
  }
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
netzke-basepack-0.12.9 javascripts/basepack.js
netzke-basepack-0.12.8 javascripts/basepack.js
netzke-basepack-0.12.7 javascripts/basepack.js
netzke-basepack-0.12.6 javascripts/basepack.js
netzke-basepack-0.12.5 javascripts/basepack.js
netzke-basepack-0.12.4 javascripts/basepack.js
netzke-basepack-0.12.3 javascripts/basepack.js
netzke-basepack-0.12.2 javascripts/basepack.js
netzke-basepack-0.12.1 javascripts/basepack.js