$('#noteedit_editor').focus();
}
-
-
/**
* Initialize everything when DOM is ready
*/
});
// tag editing
- if($('#tagedit')){
+ if($('#tagedit').length){
var img = new Image();
img.src = 'pix/tag_blue_edit.png';
img.className = 'click';
}
// note editing
- if($('#noteedit')){
+ if($('#noteedit').length){
var img;
img = new Image();
// set focus
- if($('#searchfield')) $('#searchfield').focus();
- if($('#firstfield')) $('#firstfield').focus();
+ if($('#searchfield').length) $('#searchfield').focus();
+ if($('#firstfield').length) $('#firstfield').focus();
+
+ // run google maps loader
+ if($('#google_map').length){
+ gmap_loader();
+ $(document).unload(GUnload);
+ }
});