Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
- Loading branch information
Showing
23 changed files
with
2,215 additions
and
11,051 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...admin/formwidgets/colorpicker/assets/vendor/colorpicker/css/bootstrap-colorpicker.min.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
app/admin/formwidgets/colorpicker/assets/vendor/colorpicker/js/bootstrap-colorpicker.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
app/admin/formwidgets/repeater/assets/vendor/sortablejs/Sortable.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
152 changes: 76 additions & 76 deletions
152
app/admin/formwidgets/repeater/assets/vendor/sortablejs/jquery-sortable.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,76 @@ | ||
(function (factory) { | ||
"use strict"; | ||
var sortable, | ||
jq, | ||
_this = this | ||
; | ||
|
||
if (typeof define === "function" && define.amd) { | ||
try { | ||
define(["sortablejs", "jquery"], function(Sortable, $) { | ||
sortable = Sortable; | ||
jq = $; | ||
checkErrors(); | ||
factory(Sortable, $); | ||
}); | ||
} catch(err) { | ||
checkErrors(); | ||
} | ||
return; | ||
} else if (typeof exports === 'object') { | ||
try { | ||
sortable = require('sortablejs'); | ||
jq = require('jquery'); | ||
} catch(err) { } | ||
} | ||
|
||
if (typeof jQuery === 'function' || typeof $ === 'function') { | ||
jq = jQuery || $; | ||
} | ||
|
||
if (typeof Sortable !== 'undefined') { | ||
sortable = Sortable; | ||
} | ||
|
||
function checkErrors() { | ||
if (!jq) { | ||
throw new Error('jQuery is required for jquery-sortablejs'); | ||
} | ||
|
||
if (!sortable) { | ||
throw new Error('SortableJS is required for jquery-sortablejs (https://github.com/SortableJS/Sortable)'); | ||
} | ||
} | ||
checkErrors(); | ||
factory(sortable, jq); | ||
})(function (Sortable, $) { | ||
"use strict"; | ||
|
||
$.fn.sortable = function (options) { | ||
var retVal, | ||
args = arguments; | ||
|
||
this.each(function () { | ||
var $el = $(this), | ||
sortable = $el.data('sortable'); | ||
|
||
if (!sortable && (options instanceof Object || !options)) { | ||
sortable = new Sortable(this, options); | ||
$el.data('sortable', sortable); | ||
} else if (sortable) { | ||
if (options === 'destroy') { | ||
sortable.destroy(); | ||
$el.removeData('sortable'); | ||
} else if (options === 'widget') { | ||
retVal = sortable; | ||
} else if (typeof sortable[options] === 'function') { | ||
retVal = sortable[options].apply(sortable, [].slice.call(args, 1)); | ||
} else if (options in sortable.options) { | ||
retVal = sortable.option.apply(sortable, args); | ||
} | ||
} | ||
}); | ||
|
||
return (retVal === void 0) ? this : retVal; | ||
}; | ||
}); | ||
(function (factory) { | ||
"use strict"; | ||
var sortable, | ||
jq, | ||
_this = this | ||
; | ||
|
||
if (typeof define === "function" && define.amd) { | ||
try { | ||
define(["sortablejs", "jquery"], function(Sortable, $) { | ||
sortable = Sortable; | ||
jq = $; | ||
checkErrors(); | ||
factory(Sortable, $); | ||
}); | ||
} catch(err) { | ||
checkErrors(); | ||
} | ||
return; | ||
} else if (typeof exports === 'object') { | ||
try { | ||
sortable = require('sortablejs'); | ||
jq = require('jquery'); | ||
} catch(err) { } | ||
} | ||
|
||
if (typeof jQuery === 'function' || typeof $ === 'function') { | ||
jq = jQuery || $; | ||
} | ||
|
||
if (typeof Sortable !== 'undefined') { | ||
sortable = Sortable; | ||
} | ||
|
||
function checkErrors() { | ||
if (!jq) { | ||
throw new Error('jQuery is required for jquery-sortablejs'); | ||
} | ||
|
||
if (!sortable) { | ||
throw new Error('SortableJS is required for jquery-sortablejs (https://github.com/SortableJS/Sortable)'); | ||
} | ||
} | ||
checkErrors(); | ||
factory(sortable, jq); | ||
})(function (Sortable, $) { | ||
"use strict"; | ||
|
||
$.fn.sortable = function (options) { | ||
var retVal, | ||
args = arguments; | ||
|
||
this.each(function () { | ||
var $el = $(this), | ||
sortable = $el.data('sortable'); | ||
|
||
if (!sortable && (options instanceof Object || !options)) { | ||
sortable = new Sortable(this, options); | ||
$el.data('sortable', sortable); | ||
} else if (sortable) { | ||
if (options === 'destroy') { | ||
sortable.destroy(); | ||
$el.removeData('sortable'); | ||
} else if (options === 'widget') { | ||
retVal = sortable; | ||
} else if (typeof sortable[options] === 'function') { | ||
retVal = sortable[options].apply(sortable, [].slice.call(args, 1)); | ||
} else if (options in sortable.options) { | ||
retVal = sortable.option.apply(sortable, args); | ||
} | ||
} | ||
}); | ||
|
||
return (retVal === void 0) ? this : retVal; | ||
}; | ||
}); |
Oops, something went wrong.