Skip to content

Commit

Permalink
Updated to version 1.2.5 of Kaliko CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
fschultz committed May 29, 2019
1 parent c982a03 commit 27b869e
Show file tree
Hide file tree
Showing 35 changed files with 218 additions and 206 deletions.
65 changes: 32 additions & 33 deletions Admin/Assets/js/kalikocms.admin.core.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Admin/Assets/js/kalikocms.admin.js
Expand Up @@ -44,6 +44,7 @@ function initHtmlEditor(assetsPath) {
},
paste_data_images: true,
extended_valid_elements: "i[class],span,span[class]",
convert_urls: false,
relative_urls: false,
toolbar: "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | code",
file_picker_callback: function (callback, value, meta) {
Expand Down
2 changes: 1 addition & 1 deletion Admin/Assets/themes/dakota/theme.min.css

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions Admin/Content/Dialogs/SelectFileDialog.aspx
Expand Up @@ -147,8 +147,7 @@
sequentialUploads: true,
formData: function(form) {
return [{ name: 'path', value: path }];
},
maxFileSize: 5000000 //,
}
}
)
.bind('fileuploaddrop', function(e, data) {
Expand Down
2 changes: 1 addition & 1 deletion Admin/Content/Dialogs/SelectLinkDialog.aspx
Expand Up @@ -61,7 +61,7 @@
$('#link-tab a[href=<%=ActiveTab %>]').tab('show');
$('#<%=SelectFileButton.ClientID %>').click(function () {
top.propertyEditor.file.openDialog($('#<%=FileUrl.ClientID %>'), $('#<%=FileDisplayField.ClientID %>'));
top.propertyEditor.file.openDialog($('#<%=FileUrl.ClientID %>'), $('#<%=FileDisplayField.ClientID %>'), window);
return false;
});
Expand Down
10 changes: 5 additions & 5 deletions Admin/Content/EditPage.aspx
Expand Up @@ -82,14 +82,14 @@
<span class="static-text"><asp:Literal ID="ShortUrl" runat="server" /></span>
</div>
</div>
<div class="form-actions">
<button id="versionbutton" type="button" class="btn btn-default pull-right"><i class="icon-code-fork"></i> Show versions</button>
<asp:LinkButton runat="server" ID="PublishButton" CssClass="btn btn-lg btn-primary"><i class="icon-thumbs-up"></i> Publish page</asp:LinkButton>
<asp:LinkButton runat="server" ID="SaveButton" CssClass="btn btn-lg btn-default"><i class="icon-pencil"></i> Save working copy</asp:LinkButton>
</div>
</fieldset>
</div>
</div>
<div class="form-actions">
<button id="versionbutton" type="button" class="btn btn-default pull-right"><i class="icon-code-fork"></i> Show versions</button>
<asp:LinkButton runat="server" ID="PublishButton" CssClass="btn btn-lg btn-primary"><i class="icon-thumbs-up"></i> Publish page</asp:LinkButton>
<asp:LinkButton runat="server" ID="SaveButton" CssClass="btn btn-lg btn-default"><i class="icon-pencil"></i> Save working copy</asp:LinkButton>
</div>
</form>
</asp:Content>

Expand Down
11 changes: 6 additions & 5 deletions Admin/Content/PageTree/PageTreeControl.ascx
Expand Up @@ -153,11 +153,12 @@
"old": data.old_parent,
"position": data.position
},
success: function(r) {
data.instance.load_node(data.parent);
if (data.parent != data.old_parent) {
data.instance.load_node(data.old_parent);
}
success: function (r) {
data.instance.refresh();
//data.instance.load_node(data.parent);
//if (data.parent != data.old_parent) {
// data.instance.load_node(data.old_parent);
//}
if (!r.success) {
if (r.message.length > 0) {
Expand Down
6 changes: 3 additions & 3 deletions Admin/Content/PropertyType/CollectionPropertyEditor.js
Expand Up @@ -6,14 +6,14 @@
var content = '<a href="#" onclick="top.propertyEditor.collection.editField(this);return false;" class="pull-right"><i class="icon icon-edit"></i>edit</a><i class="icon icon-sort"></i> ' + exerpt;
if (valueField == null && val != null) {
var newField = $('<li class="btn btn-default collection-item"></li>');
newField.attr('data-value', escape(val)).html(content);
newField.attr('data-value', encodeURIComponent(val)).html(content);
list.append(newField);
}
else if (val == null) {
$(valueField).remove();
}
else {
$(valueField).attr('data-value', escape(val)).html(content);
$(valueField).attr('data-value', encodeURIComponent(val)).html(content);
}

list.trigger('sortupdate');
Expand All @@ -23,7 +23,7 @@

var value = null;
if (valueField != null) {
value = unescape($(valueField).attr('data-value'));
value = decodeURIComponent($(valueField).attr('data-value'));
}
top.propertyEditor.dialogs.openEditCollectionPropertyDialog(className, value);
},
Expand Down
10 changes: 5 additions & 5 deletions Admin/Content/PropertyType/FilePropertyEditor.js
@@ -1,11 +1,11 @@
(function (propertyEditor) {
propertyEditor.file = propertyEditor.file || {
openDialog: function(pathField, displayField) {
var filePath = $(pathField).val();
openDialog: function (pathField, displayField, context) {
var filePath = context.$(pathField).val();

var callback = function(newFilePath) {
$(displayField).val(newFilePath);
$(pathField).val(newFilePath);
var callback = function (newFilePath) {
context.$(displayField).val(newFilePath);
context.$(pathField).val(newFilePath);
};

top.registerCallback(callback);
Expand Down
13 changes: 9 additions & 4 deletions Admin/Content/PropertyType/ImagePropertyEditor.js
@@ -1,4 +1,6 @@
(function (propertyEditor) {
var localTop = top;

propertyEditor.image = propertyEditor.image || {
openDialog: function (pathField, previewImage, originalPathField, cropXField, cropYField, cropWField, cropHField, width, height, descriptionField) {
var imagePath = $(pathField).val();
Expand All @@ -25,18 +27,21 @@
$(originalPathField).val('');
}
};

top.registerCallback(callback);

top.propertyEditor.dialogs.openEditImageDialog(imagePath, originalPath, cropX, cropY, cropW, cropH, width, height, description);

localTop.registerCallback(callback);

localTop.propertyEditor.dialogs.openEditImageDialog(imagePath, originalPath, cropX, cropY, cropW, cropH, width, height, description);
}
};
})(top.propertyEditor || (top.propertyEditor = {}));


(function (dialogs) {
var localParent = parent;

dialogs.openEditImageDialog = dialogs.openEditImageDialog || function (imagePath, originalPath, cropX, cropY, cropW, cropH, width, height, description) {
parent.openModal("Content/Dialogs/EditImageDialog.aspx?imagePath=" + imagePath + "&originalPath=" + originalPath + "&cropX=" + cropX + "&cropY=" + cropY + "&cropW=" + cropW + "&cropH=" + cropH + "&width=" + width + "&height=" + height + "&description=" + escape(description), 710, 500);
localParent.openModal("Content/Dialogs/EditImageDialog.aspx?imagePath=" + imagePath + "&originalPath=" + originalPath + "&cropX=" + cropX + "&cropY=" + cropY + "&cropW=" + cropW + "&cropH=" + cropH + "&width=" + width + "&height=" + height + "&description=" + escape(description), 710, 500);
return false;
};
})(top.propertyEditor.dialogs || (top.propertyEditor.dialogs = {}));
10 changes: 7 additions & 3 deletions Admin/Content/PropertyType/LinkPropertyEditor.js
@@ -1,4 +1,6 @@
(function (propertyEditor) {
var localTop = top;

propertyEditor.link = propertyEditor.link || {
openDialog: function (urlField, typeField, displayField) {
var url = $(urlField).val();
Expand All @@ -10,17 +12,19 @@
$(displayField).val(newUrl);
};

top.registerCallback(callback);
localTop.registerCallback(callback);

top.propertyEditor.dialogs.openSelectLinkDialog(url, type);
localTop.propertyEditor.dialogs.openSelectLinkDialog(url, type);
}
};
})(top.propertyEditor || (top.propertyEditor = {}));


(function (dialogs) {
var localParent = parent;

dialogs.openSelectLinkDialog = dialogs.openSelectLinkDialog || function (url, type) {
parent.openModal("Content/Dialogs/SelectLinkDialog.aspx?url=" + escape(url) + "&type=" + type, 500, 240);
localParent.openModal("Content/Dialogs/SelectLinkDialog.aspx?url=" + escape(url) + "&type=" + type, 500, 240);
return false;
};
})(top.propertyEditor.dialogs || (top.propertyEditor.dialogs = {}));
Binary file removed App_Data/SearchIndex/KalikoCMS/_2m.frq
Binary file not shown.
1 change: 0 additions & 1 deletion App_Data/SearchIndex/KalikoCMS/_2m.nrm

This file was deleted.

Binary file removed App_Data/SearchIndex/KalikoCMS/_2m.prx
Binary file not shown.
Binary file removed App_Data/SearchIndex/KalikoCMS/_2m.tis
Binary file not shown.
Binary file removed App_Data/SearchIndex/KalikoCMS/_2n.cfs
Binary file not shown.
Binary file removed App_Data/SearchIndex/KalikoCMS/_2o.tii
Binary file not shown.
Binary file added App_Data/SearchIndex/KalikoCMS/_2p.cfs
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file added App_Data/SearchIndex/KalikoCMS/_2q.frq
Binary file not shown.
1 change: 1 addition & 0 deletions App_Data/SearchIndex/KalikoCMS/_2q.nrm
@@ -0,0 +1 @@
NRM�||||||||||||||||||||||||srqrrttttmvtwuutuu||||vv���|��������ywx|xy|wwwww||||||||||||
Binary file added App_Data/SearchIndex/KalikoCMS/_2q.prx
Binary file not shown.
Binary file added App_Data/SearchIndex/KalikoCMS/_2q.tii
Binary file not shown.
Binary file added App_Data/SearchIndex/KalikoCMS/_2q.tis
Binary file not shown.
Binary file modified App_Data/SearchIndex/KalikoCMS/segments.gen
Binary file not shown.
Binary file removed App_Data/SearchIndex/KalikoCMS/segments_1i
Binary file not shown.
Binary file added App_Data/SearchIndex/KalikoCMS/segments_1k
Binary file not shown.
Binary file modified App_Data/kalikocms.db3
Binary file not shown.

0 comments on commit 27b869e

Please sign in to comment.