Skip to content

Commit 5a5371c

Browse files
committed
Remove unused and debug code
git-svn-id: https://share-extras.googlecode.com/svn/trunk/Site Geotagged Content Dashlet@1335 a3f5c567-fd0f-3a89-9b71-a290c5a5f590
1 parent f2d7568 commit 5a5371c

File tree

2 files changed

+692
-75
lines changed

2 files changed

+692
-75
lines changed

source/web/extras/components/documentlibrary/documentlist-geo.js

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,6 @@ if (typeof Extras == "undefined" || !Extras)
339339
galleryItem.setAttribute('id', galleryItemId);
340340
container.appendChild(galleryItem);
341341

342-
//var galleryItemThumbnailDiv = this.getRowItemThumbnailElement(galleryItem);
343-
//var galleryItemHeaderDiv = this.getRowItemHeaderElement(galleryItem);
344342
var galleryItemDetailDiv = this.getRowItemDetailElement(galleryItem);
345343
var galleryItemActionsDiv = this.getRowItemActionsElement(galleryItem);
346344

@@ -352,36 +350,9 @@ if (typeof Extras == "undefined" || !Extras)
352350

353351
// Details div ID
354352
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-
*/
381353

382354
var properties = record.jsNode.properties;
383355

384-
Alfresco.logger.debug(oRecord.getId());
385356
// create a marker in the given location and add it to the map
386357
if (properties["cm:latitude"] && properties["cm:longitude"])
387358
{
@@ -391,54 +362,8 @@ if (typeof Extras == "undefined" || !Extras)
391362
marker.bindPopup(Dom.get(scope.id + '-details-' + galleryItemId), { width: 400, maxWidth: 400 });
392363
Alfresco.logger.debug("Has geo data");
393364
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-
*/
406365
}
407366
};
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-
}
441367
};
442-
*/
443368

444369
})();

0 commit comments

Comments
 (0)