Advertisement
Guest User

Untitled

a guest
Nov 10th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. diff -r c5251fb33fe1 sa/apps/managedobjectselector/js/Application.js
  2. --- a/sa/apps/managedobjectselector/js/Application.js Wed Oct 15 16:14:57 2014 +0600
  3. +++ b/sa/apps/managedobjectselector/js/Application.js Mon Nov 10 11:27:01 2014 +0500
  4. @@ -27,7 +27,7 @@
  5.  
  6. initComponent: function() {
  7. var me = this;
  8. -
  9. + ME = me;
  10. me.ITEM_OBJECTS = me.registerItem(
  11. "NOC.sa.managedobjectselector.ObjectsPanel"
  12. );
  13. @@ -37,6 +37,15 @@
  14. scope: me,
  15. handler: me.onObjects
  16. });
  17. + me.itemSelector = Ext.create("NOC.sa.managedobjectselector.M2MField", {
  18. + name: "sources",
  19. + height: 220,
  20. + width: 600,
  21. + fieldLabel: "Sources",
  22. + buttons: ["add", "remove"],
  23. + allowBlank: true
  24. + });
  25. + me.itemSelector.store.setPageSize(1000);
  26. Ext.apply(me, {
  27. columns: [
  28. {
  29. @@ -204,15 +213,7 @@
  30. ["A", "AND"]
  31. ]
  32. },
  33. - {
  34. - xtype: "sa.managedobjectselector.M2MField",
  35. - name: "sources",
  36. - height: 220,
  37. - width: 600,
  38. - fieldLabel: "Sources",
  39. - buttons: ["add", "remove"],
  40. - allowBlank: true
  41. - }
  42. + me.itemSelector
  43. ],
  44. inlines: [
  45. {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement