address button comment and jshint errors
[xtuple] / lib / enyo-x / source / views / grid_box.js
index 94be832..1d55fee 100644 (file)
@@ -352,7 +352,8 @@ trailing:true, white:true, strict: false*/
         classes: "xv-buttons",
         components: [
           {kind: "onyx.Button", name: "newButton", ontap: "newItem", classes: "icon-plus"},
-          {kind: "font.TextIcon", name: "exportButton", ontap: "exportAttr", icon: "share", content: "_export".loc()} // TODO: classes?
+          {kind: "onyx.Button", name: "exportButton", ontap: "exportAttr",
+           icon: "share", content: "_export".loc(), classes: "icon-share"}
         ]
       });
 
@@ -528,8 +529,8 @@ trailing:true, white:true, strict: false*/
       editor.render();
       editor.setFirstFocus();
     },
-    exportAttr: function(inSender, inEvent) {
-      var gridbox = inEvent.originator.parent.parent.parent;
+    exportAttr: function (inSender, inEvent) {
+      var gridbox = inEvent.originator.parent.parent;
       this.doExportAttr({ recordType: gridbox.parent.parent.model,
                           uuid:       gridbox.parent.parent.value.attributes.uuid,
                           attr:       gridbox.attr });