Skip to content

Commit

Permalink
Carousel component and swiper library files, VvvebJs pass origEvent o…
Browse files Browse the repository at this point in the history
…n property change
  • Loading branch information
givanz committed Dec 27, 2023
1 parent 040d1ad commit 4714aca
Show file tree
Hide file tree
Showing 5 changed files with 290 additions and 87 deletions.
38 changes: 38 additions & 0 deletions public/js/libs/swiper/swiper-bundle.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions public/js/libs/swiper/swiper-bundle.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/js/vvvebjs/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,15 +345,15 @@ Vvveb.Components = {
var element;

var fn = function(component, property) {
return property.input.on('propertyChange', function (event, value, input) {
return property.input.on('propertyChange', function (event, value, input, origEvent) {

var element = selectedElement = Vvveb.Builder.selectedEl;

if (property.child) element = element.find(property.child);
if (property.parent) element = element.parent(property.parent);

if (property.onChange) {
let ret = property.onChange(element, value, input, component);
let ret = property.onChange(element, value, input, component, origEvent);
//if on change returns an object then is returning the dom node otherwise is returning the new value
if (typeof ret == "object") {
element = ret;
Expand Down Expand Up @@ -1668,7 +1668,7 @@ Vvveb.Builder = {

return false;
});

$("#delete-btn").on("click", function(event) {
$("#select-box").hide();

Expand Down
3 changes: 2 additions & 1 deletion public/js/vvvebjs/components-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ Vvveb.Components.extend("_base", "_base", {
this.click();
});

setTimeout(function () { $("[name=id]").trigger("focus") }, 700);;
setTimeout(function () { $("[name=id]").trigger("focus") }, 700);

return false;
});

$(".linked-elements-hover", inputElement).
Expand Down
Loading

0 comments on commit 4714aca

Please sign in to comment.