camaleon_cms 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 131a13eefc84861802b2115956ae6dd952a34b04
|
|
4
|
+
data.tar.gz: f66a3b0b3b430310afd29eea8f2ab31ff5520ab0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 149b43772e79e4f34b89606db246b88122f7e3aad450b657d7fc0a0f097722b0ce0b56ad1eb3b6a7d38bab04042890210b4f82493c2d3302ca1bc40fb7bd6058
|
|
7
|
+
data.tar.gz: 5c86f3f41673b761f2d78616a4afe158c5f499b4055520d5a4b6016781540977d65d9556955d1d5343bf0a50c2514a636cac91ca586b84948015f8ce105d5d71
|
|
@@ -80,12 +80,12 @@ jQuery(function(){
|
|
|
80
80
|
* modal_size: "modal-lg", "modal-sm", ""(default as normal "")
|
|
81
81
|
* callback: function evaluated after modal shown
|
|
82
82
|
* type: modal color (primary|default|success)
|
|
83
|
-
* zindex: Integer zindex position (default
|
|
83
|
+
* zindex: Integer zindex position (default null)
|
|
84
84
|
* on_submit: Function executed after submit button click (if this is present, enable the submit button beside cancel button)
|
|
85
85
|
* return modal object
|
|
86
86
|
*/
|
|
87
87
|
function open_modal(settings){
|
|
88
|
-
var def = {title: "", content: null, url: null, show_footer: false, mode: "inline", ajax_params: {}, zindex:
|
|
88
|
+
var def = {title: "", content: null, url: null, show_footer: false, mode: "inline", ajax_params: {}, zindex: null, modal_size: "", type: '', modal_settings:{}, on_submit: null, callback: function(){}}
|
|
89
89
|
settings = $.extend({}, def, settings);
|
|
90
90
|
var modal = $('<div id="ow_inline_modal" class="modal fade modal-'+settings.type+'">'+
|
|
91
91
|
'<div class="modal-dialog '+settings.modal_size+'">'+
|
|
@@ -161,4 +161,4 @@ function wait_modal(){
|
|
|
161
161
|
}
|
|
162
162
|
var loading_modal = new wait_modal();
|
|
163
163
|
function showLoading(){ $("body > .modal").not("#pleaseWaitDialog").hide(); loading_modal.show(); }
|
|
164
|
-
function hideLoading(){ loading_modal.hide(); $("body > .modal").not("#pleaseWaitDialog").show(); }
|
|
164
|
+
function hideLoading(){ loading_modal.hide(); $("body > .modal").not("#pleaseWaitDialog").show(); }
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
module FrontendConcern extend ActiveSupport::Concern
|
|
10
10
|
# visiting sitemap.xml
|
|
11
11
|
def sitemap
|
|
12
|
-
r = {layout: (params[:format] == "html" ? (self.send :_layout) : false), render: "sitemap"}
|
|
12
|
+
r = {layout: (params[:format] == "html" ? (self.send :_layout) : false), render: "sitemap", custom: "", format: params[:format]}
|
|
13
13
|
hooks_run("on_render_sitemap", r)
|
|
14
|
+
@custom_sitemap = r[:custom]
|
|
14
15
|
render r[:render], layout: r[:layout]
|
|
15
16
|
end
|
|
16
17
|
|
data/lib/camaleon_cms/version.rb
CHANGED