Skip to content

Commit fd93f1f

Browse files
committed
Merge branch 'eclipxe-browsercms-master'
2 parents a2d7198 + 199e8ef commit fd93f1f

File tree

13 files changed

+63
-37
lines changed

13 files changed

+63
-37
lines changed

app/assets/javascripts/ckeditor/plugins/delete_content/plugin.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//= require cms/ajax
2-
31
CKEDITOR.plugins.add('delete_content', {
42
icons:'deletecontent',
53
init:function (editor) {

app/assets/javascripts/ckeditor/plugins/edit_content/plugin.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//= require cms/ajax
2-
31
CKEDITOR.plugins.add('edit_content', {
42
icons:'editcontent',
53
init:function (editor) {

app/assets/javascripts/ckeditor/plugins/move_content/plugin.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//= require cms/ajax
2-
31
CKEDITOR.plugins.add('move_content', {
42
icons:'movecontentup,movecontentdown',
53
init:function (editor) {

app/assets/javascripts/cms/ajax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jQuery(function ($) {
1010
asJS:function () {
1111
return function (xhr) {
1212
xhr.setRequestHeader('X-CSRF-Token', $.cms.csrfToken());
13-
xhr.setRequestHeader("Accept", "text/javascript");
13+
xhr.setRequestHeader("Accept", "text/javascript, */*, q=0.1");
1414
}
1515
},
1616
asJSON:function () {
1717
return function (xhr) {
1818
xhr.setRequestHeader('X-CSRF-Token', $.cms.csrfToken());
19-
xhr.setRequestHeader("Accept", "application/json");
19+
xhr.setRequestHeader("Accept", "application/json, */*, q=0.1");
2020
}
2121
},
2222
// Invoke a Rails aware (w/ CSRF token) PUT request.

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/assets/javascripts/cms/page_editor.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//= require 'cms/core_library'
44
//= require 'bootstrap-modal'
55
//= require 'ckeditor-jquery'
6+
//= require 'cms/ajax'
67

78
// Since we are within the page editing iframe, add a 'target=_top' to all links so they refresh the entire page.
89
$(function() {
@@ -52,8 +53,8 @@ $(function() {
5253
} else {
5354
reload.apply();
5455
}
55-
},
56-
beforeSend: $.cms_ajax.asJSON()
56+
}
57+
//,beforeSend: $.cms_ajax.asJSON()
5758
});
5859

5960
},
@@ -114,8 +115,8 @@ $(function() {
114115
afterSave.apply();
115116
}
116117
},
117-
data: message,
118-
beforeSend: $.cms_ajax.asJS()
118+
data: message
119+
//,beforeSend: $.cms_ajax.asJS()
119120
});
120121
}
121122
};

app/assets/stylesheets/cms/bootstrap-customizations.css.scss

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,30 @@ tbody .block_status.published, #sitemap .span1.Published {
6565

6666
.label {margin: 12px 10px 0 0;}
6767

68-
#loginmain {margin: 0 auto; float: none;}
68+
#loginmain {margin: 0 auto; float: none;}
69+
70+
.container-fluid {
71+
padding-top: 20px;
72+
}
73+
74+
.navbar .nav > li > .btn {
75+
color: #fff;
76+
text-shadow: 0 0px 0 white;
77+
}
78+
79+
.navbar .nav > li > .btn:focus,
80+
.navbar .nav > li > .btn:hover {
81+
background-color: #eeeeee;
82+
color: #fff;
83+
text-decoration: none;
84+
}
85+
86+
.navbar .nav > li > .btn:hover, .btn:focus {
87+
background-position: 0 0px;
88+
}
89+
90+
input,
91+
textarea,
92+
.uneditable-input {
93+
width: inherit;
94+
}

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/controllers/cms/routes_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def index
1414
@routes = Rails.application.routes.routes.collect do |route|
1515
name = route.name.to_s
1616
verb = route.verb
17-
segs = route.path
17+
segs = route.path.spec
1818
reqs = route.requirements.empty? ? "" : route.requirements.inspect
1919
{:name => name, :verb => verb, :segs => segs, :reqs => reqs}
2020
end

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<%= f.cms_text_field :name %>
66
<%= f.cms_text_field :format %>
77
<%= f.cms_drop_down :handler, ActionView::Template.template_handler_extensions, :default => "erb" %>
8-
<%= f.cms_text_area :body, :style => "height: 500px" %>
8+
<%= f.cms_text_area :body, :style => "height: 500px", :cols => 80 %>
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)