Skip to content

Commit b71fc63

Browse files
committed
Fixed issue with core_library requiring jquery, leading to inline editing to not work
Inline content editor was unable to find the draft - it needed the page_id passed in as an integer Updated dynamic_views form partial to use dk_button_wrapper vs lt_button_wrapper
1 parent 668a34d commit b71fc63

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

app/assets/javascripts/cms/core_library.js.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//
22
// Defines Core BrowserCMS functions used throughout the application.
33
//
4-
//= require jquery
54
//
65
jQuery(function($) {
76

app/controllers/cms/inline_content_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class InlineContentController < Cms::BaseController
55
def update
66
content = Content.find_draft(params[:content_name], params[:id])
77
content.update_attributes(filtered_content)
8-
@page = Page.find_draft(params[:page_id])
8+
@page = Page.find_draft(params[:page_id].to_i)
99
if (!@page.live?)
1010
page_status = "draft-status"
1111
status_label = "DRAFT"

app/views/cms/dynamic_views/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
<%= f.cms_drop_down :handler, ActionView::Template.template_handler_extensions, :default => "erb" %>
88
<%= f.cms_text_area :body, :style => "height: 500px" %>
99
<div class="buttons">
10-
<%= lt_button_wrapper(f.submit("Save", :class => "submit", :tabindex => next_tabindex)) %>
10+
<%=raw dk_button_wrapper(f.submit("Save", :class => "submit", :tabindex => next_tabindex)) %>
1111
</div>
1212
<% end %>

0 commit comments

Comments
 (0)