vendor/assets/javascripts/bhf/application.js in bhf-0.4.9 vs vendor/assets/javascripts/bhf/application.js in bhf-0.4.10
- old
+ new
@@ -54,11 +54,11 @@
hiddenInput.value = date.format('db');
}
}, options));
});
- scope.getElements('.markdown').each(function(mdTa){
+ scope.getElements('.wmd_editor').each(function(mdTa){
var headline, toggleHtmlPreview, toggleLivePreview, livePreview, htmlPreview;
var togglePreview = function(e){
var htmlMode = e.target.hasClass('toggle_html_preview');
livePreview.toggleClass('hide', htmlMode);
@@ -89,10 +89,14 @@
buttons: "bold italic link image ol ul heading hr undo redo help",
modifierKeys: false,
autoFormatting: false
});
});
+
+ scope.getElements('.map_data_lat').each(function(lat){
+ new Latlng(lat);
+ });
};
// TODO: disable more ajax calls while ajax is loading
var quickEdit = new AjaxEdit({
holderParent: $('content'),
@@ -141,9 +145,10 @@
new Request.HTML({
method: 'get',
url: href,
onSuccess: function(a, b, html){
platform.innerHTML = html;
+ rails.applyEvents(platform);
if (callback) {
callback.call();
}
setupSortables(platform);
ajaxNote.success();
\ No newline at end of file