@@ -339,8 +339,6 @@ if (typeof Extras == "undefined" || !Extras)
339
339
galleryItem . setAttribute ( 'id' , galleryItemId ) ;
340
340
container . appendChild ( galleryItem ) ;
341
341
342
- //var galleryItemThumbnailDiv = this.getRowItemThumbnailElement(galleryItem);
343
- //var galleryItemHeaderDiv = this.getRowItemHeaderElement(galleryItem);
344
342
var galleryItemDetailDiv = this . getRowItemDetailElement ( galleryItem ) ;
345
343
var galleryItemActionsDiv = this . getRowItemActionsElement ( galleryItem ) ;
346
344
@@ -352,36 +350,9 @@ if (typeof Extras == "undefined" || !Extras)
352
350
353
351
// Details div ID
354
352
galleryItemDetailDiv . setAttribute ( 'id' , scope . id + '-details-' + galleryItemId ) ;
355
-
356
- // Render the thumbnail within the gallery item
357
- /*
358
- this.renderCellThumbnail(
359
- scope,
360
- galleryItemThumbnailDiv,
361
- oRecord,
362
- galleryItem,
363
- null,
364
- '');*/
365
-
366
- // Add the drag and drop
367
- /*
368
- var imgId = record.jsNode.nodeRef.nodeRef;
369
- var dnd = new Alfresco.DnD(imgId, scope);
370
- */
371
-
372
- // Create a YUI Panel with a relative context of its associated galleryItem
373
- /*
374
- galleryItemDetailDiv.panel = new YAHOO.widget.Panel(galleryItemDetailDiv,
375
- {
376
- visible:false, draggable:false, close:false, constraintoviewport: true,
377
- underlay: 'none', width: DETAIL_PANEL_WIDTH,
378
- context: [galleryItem, 'tl', 'tl', [this.galleryColumnsChangedEvent], DETAIL_PANEL_OFFSET]
379
- });
380
- */
381
353
382
354
var properties = record . jsNode . properties ;
383
355
384
- Alfresco . logger . debug ( oRecord . getId ( ) ) ;
385
356
// create a marker in the given location and add it to the map
386
357
if ( properties [ "cm:latitude" ] && properties [ "cm:longitude" ] )
387
358
{
@@ -391,54 +362,8 @@ if (typeof Extras == "undefined" || !Extras)
391
362
marker . bindPopup ( Dom . get ( scope . id + '-details-' + galleryItemId ) , { width : 400 , maxWidth : 400 } ) ;
392
363
Alfresco . logger . debug ( "Has geo data" ) ;
393
364
this . markers . push ( marker ) ;
394
- /*
395
- marker.on("click", function(e) {
396
- if (Dom.get(scope.id + '-details-' + this.galleryItemId))
397
- {
398
- Dom.get(scope.id + '-popup-' + this.galleryItemId).appendChild(Dom.get(scope.id + '-details-' + this.galleryItemId));
399
- Dom.setStyle(Dom.get(scope.id + '-popup-' + this.galleryItemId).parentNode, "width", "");
400
- }
401
- }, { galleryItemId: galleryItemId });
402
- //.bindPopup(name).openPopup();
403
- //var marker = new L.Marker(latlng);
404
-
405
- */
406
365
}
407
366
} ;
408
-
409
- /*
410
- scope.widgets.dataTable.subscribe("renderEvent", function DL_renderEvent()
411
- {
412
- Alfresco.logger.debug("DataTable renderEvent");
413
- }, scope, true);*/
414
- } ;
415
-
416
- // TODO Need renderCellSelected()?
417
-
418
- /*
419
- Extras.DocumentListGeoViewRenderer.prototype.renderCellThumbnail = function DL_GVR_renderCellThumbnail(scope, elCell, oRecord, oColumn, oData, imgIdSuffix)
420
- {
421
- var record = oRecord.getData(),
422
- node = record.jsNode,
423
- properties = node.properties,
424
- name = record.displayName,
425
- isContainer = node.isContainer,
426
- isLink = node.isLink,
427
- extn = name.substring(name.lastIndexOf(".")),
428
- imgId = node.nodeRef.nodeRef; // DD added
429
-
430
- // Do something with the node
431
-
432
- // create a marker in the given location and add it to the map
433
- if (properties["cm:latitude"] && properties["cm:longitude"])
434
- {
435
- var marker = L.marker([properties["cm:latitude"], properties["cm:longitude"]]).addTo(this.map);
436
- marker.bindPopup(name);
437
- this.markers.push(marker);
438
- //.bindPopup(name).openPopup();
439
- //var marker = new L.Marker(latlng);
440
- }
441
367
} ;
442
- */
443
368
444
369
} ) ( ) ;
0 commit comments