@givanz this is awesome... Good job! I had few hick-ups running this as is but after investing few hours was able to get the code working Save and New Page functionality works now.... but I got few questions regarding newPage which I don't understand? See my comments in the code especially about data.name as there is no such field in the modal window. Or is it something that i am missing????
builder.js line 1616
`newPage : function () {
var newPageModal = $('#new-page-modal');
newPageModal.modal("show").find("form").off("submit").submit(function( e ) {
var data = {};
$.each($(this).serializeArray(), function() {
data[this.name] = this.value;
});
// where is this name initialized??
Vvveb.FileManager.addPage(name, data);
e.preventDefault();
var url = "save.php";
return Vvveb.Builder.saveAjax(url, data.startTemplateUrl, function (data) {
// There is no input field called name in the modal widow so data.name is empty
Vvveb.FileManager.loadPage(data.name);
Vvveb.FileManager.scrollBottom();
newPageModal.modal("hide");
});
});
}`
@givanz this is awesome... Good job! I had few hick-ups running this as is but after investing few hours was able to get the code working Save and New Page functionality works now.... but I got few questions regarding newPage which I don't understand? See my comments in the code especially about data.name as there is no such field in the modal window. Or is it something that i am missing????
builder.js line 1616
`newPage : function () {