~shikharkohli/sahana-eden/gsoc1

« back to all changes in this revision

Viewing changes to views/gis/ol_vector_registerEvents.js

  • Committer: Shikhar Kohli
  • Date: 2010-08-11 18:40:09 UTC
  • mfrom: (802.1.156 eden)
  • Revision ID: shikharkohli@gmail.com-20100811184009-yy8zag5dowlam0ip
Merge trunk and update (a bit) of JS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Show Busy cursor whilst loading Draft Features
2
 
OpenLayers.Map.prototype.registerEvents = function(layer) {
3
 
        layer.events.register("loadstart", layer, function() {
4
 
                document.body.style.cursor = 'wait';
5
 
        });
6
 
        layer.events.register("loadend", layer, function() {
7
 
                document.body.style.cursor = 'auto';
8
 
        });
9
 
        this.addLayer(layer);
10
 
}