@@ -181,7 +181,7 @@ qx.Class.define("osparc.file.FolderContent", {
181181 if ( data [ "itemId" ] ) {
182182 item . itemId = data [ "itemId" ] ;
183183 }
184- this . __attachListenersToItems ( item , data [ "entry" ] ) ;
184+ this . __attachListenersToGridItem ( item , data [ "entry" ] ) ;
185185 items . push ( item ) ;
186186 } ) ;
187187 }
@@ -222,7 +222,7 @@ qx.Class.define("osparc.file.FolderContent", {
222222 if ( this . getMode ( ) === "list" ) {
223223 const table = this . getChildControl ( "table" ) ;
224224 table . setData ( entries ) ;
225- this . __attachListenersTotable ( table ) ;
225+ this . __attachListenersToTableItem ( table ) ;
226226 } else if ( this . getMode ( ) === "icons" ) {
227227 const iconsLayout = this . getChildControl ( "icons-layout" ) ;
228228 iconsLayout . removeAll ( ) ;
@@ -239,22 +239,22 @@ qx.Class.define("osparc.file.FolderContent", {
239239 this . setSelection ( [ this . getSelectables ( ) [ this . getMode ( ) === "icons" ? 0 : 1 ] ] ) ;
240240 } ,
241241
242- __itemTapped : function ( item ) {
242+ __itemTapped : function ( entry ) {
243243 if ( this . isMultiSelect ( ) ) {
244- this . fireDataEvent ( "multiSelectionChanged" , item ) ;
244+ this . fireDataEvent ( "multiSelectionChanged" , entry ) ;
245245 } else {
246- this . fireDataEvent ( "selectionChanged" , item ) ;
246+ this . fireDataEvent ( "selectionChanged" , entry ) ;
247247 }
248248 } ,
249249
250- __itemDblTapped : function ( item ) {
251- this . fireDataEvent ( "itemSelected" , item ) ;
252- if ( osparc . file . FilesTree . isDir ( item ) ) {
253- this . setFolder ( item ) ;
250+ __itemDblTapped : function ( entry ) {
251+ this . fireDataEvent ( "itemSelected" , entry ) ;
252+ if ( osparc . file . FilesTree . isDir ( entry ) ) {
253+ this . setFolder ( entry ) ;
254254 }
255255 } ,
256256
257- __attachListenersToItems : function ( btn , entry ) {
257+ __attachListenersToGridItem : function ( btn , entry ) {
258258 btn . addListener ( "tap" , ( ) => {
259259 this . __itemTapped ( entry ) ;
260260 } , this ) ;
@@ -263,7 +263,7 @@ qx.Class.define("osparc.file.FolderContent", {
263263 } , this ) ;
264264 } ,
265265
266- __attachListenersTotable : function ( table ) {
266+ __attachListenersToTableItem : function ( table ) {
267267 table . addListener ( "cellTap" , e => {
268268 const selectedRow = e . getRow ( ) ;
269269 const rowData = table . getTableModel ( ) . getRowData ( selectedRow ) ;
0 commit comments