Skip to content

Commit

Permalink
Merge pull request cfachicago#7 from ryanbriones/remove-ohsowe
Browse files Browse the repository at this point in the history
Remove OhSoWe widget
  • Loading branch information
GovInTrenches committed Dec 4, 2012
2 parents a8fabc9 + b930e83 commit 44f1883
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 46 deletions.
33 changes: 0 additions & 33 deletions app/assets/javascripts/main.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,6 @@ $(function() {
if (bDebug) console.info('dragged');
refreshKML();
});

if ($.browser.msie && parseInt($.browser.version, 10) === 7) {
// IE7;
} else {
window.osw_widget = new OhSoWe.MapWidget({
version: "0.1",
partnerId: "snowflake",
container: "osw_widget",
miniWidgetStyle: 'noText', //'default' or 'noText'
onReady: function(widget) {
//set the initial bounds
widget.boundsChanged(map.getBounds().toUrlValue());
//set the google maps listener
google.maps.event.addListener(map, 'bounds_changed', function() {
//if (bDebug) console.debug('bounds_changed');
widget.boundsChanged(map.getBounds().toUrlValue());
});
}
}).render();
}

function refreshKML(auto_fetch_info) {
var c = map.getCenter();
Expand Down Expand Up @@ -533,19 +513,6 @@ $(function() {
return false;
});

$('#share_link').live('click', function() {
window.osw_widget.isMinimized(function(isMin) {
if (isMin) {
window.osw_widget.showDetails();
} else {
window.osw_widget.minimize();
}
}
);

return false;
});

$('#refresh_link').live('click', function() {
refreshKML();
return false;
Expand Down
1 change: 0 additions & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
= javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false"
= javascript_include_tag "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"
= javascript_include_tag "https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"
= javascript_include_tag "http://www.ohsowe.com/assets/map_widget.js"
= javascript_include_tag "application"
= csrf_meta_tags
%meta{:name => "viewport", :content => "initial-scale=1.0, user-scalable=no"}
Expand Down
12 changes: 0 additions & 12 deletions app/views/sidewalk_claims/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,6 @@
%h1 Get Help
.btn_image
.label I need help to keep this sidewalk clean.
%li.need_supplies
- if browser.ie7?
%a{:href => "http://www.ohsowe.com", :target => "_blank"}
%h1 Share
.btn_image
.label I need supplies or can share.
- else
%a{:href => "#", :id => "share_link"}
%h1 Share
.btn_image
.label I need supplies or can share.


- else
#need_register.radius_5.link_1
Expand Down

0 comments on commit 44f1883

Please sign in to comment.