|
|
@@ -2,15 +2,14 @@
|
|
|
* Copyright (c) UNA, Inc - https://una.io
|
|
|
* MIT License - https://opensource.org/licenses/MIT
|
|
|
*
|
|
|
- * @defgroup Videos Videos
|
|
|
- * @ingroup UnaModules
|
|
|
+ * @defgroup UnaCore UNA Core
|
|
|
*
|
|
|
* @{
|
|
|
*/
|
|
|
|
|
|
-function BxVideosCategories(oOptions) {
|
|
|
+function BxDolCategories(oOptions) {
|
|
|
this._sActionsUrl = oOptions.sActionUrl;
|
|
|
- this._sObjName = oOptions.sObjName == undefined ? 'oBxVideosCategories' : oOptions.sObjName;
|
|
|
+ this._sObjName = oOptions.sObjName == undefined ? 'oBxDolCategories' : oOptions.sObjName;
|
|
|
|
|
|
this._sAnimationEffect = oOptions.sAnimationEffect == undefined ? 'slide' : oOptions.sAnimationEffect;
|
|
|
this._iAnimationSpeed = oOptions.iAnimationSpeed == undefined ? 'slow' : oOptions.iAnimationSpeed;
|
|
|
@@ -19,7 +18,7 @@ function BxVideosCategories(oOptions) {
|
|
|
this._oRequestParams = oOptions.oRequestParams == undefined ? {} : oOptions.oRequestParams;
|
|
|
}
|
|
|
|
|
|
-BxVideosCategories.prototype.categoryAdd = function (oButton, sName) {
|
|
|
+BxDolCategories.prototype.categoryAdd = function (oButton, sName) {
|
|
|
var oButton = $(oButton);
|
|
|
|
|
|
var oCategory = oButton.parents('#bx-form-element-' + sName).find('.bx-form-input-category:first').clone();
|
|
|
@@ -29,7 +28,7 @@ BxVideosCategories.prototype.categoryAdd = function (oButton, sName) {
|
|
|
oButton.parents('.bx-form-input-category-add:first').before(oCategory);
|
|
|
};
|
|
|
|
|
|
-BxVideosCategories.prototype.categoryAddNew = function (oButton, sName) {
|
|
|
+BxDolCategories.prototype.categoryAddNew = function (oButton, sName) {
|
|
|
var oButton = $(oButton);
|
|
|
|
|
|
var oCategory = oButton.parents('#bx-form-element-' + sName).find('.bx-form-input-category-new:first').clone();
|
|
|
@@ -39,10 +38,10 @@ BxVideosCategories.prototype.categoryAddNew = function (oButton, sName) {
|
|
|
$('.bx-form-input-categories .bx-form-input-category-add:first').before(oCategory);
|
|
|
};
|
|
|
|
|
|
-BxVideosCategories.prototype.categoryDelete = function (oButton) {
|
|
|
+BxDolCategories.prototype.categoryDelete = function (oButton) {
|
|
|
$(oButton).parents('.bx-form-input-category:first').remove();
|
|
|
};
|
|
|
|
|
|
-BxVideosCategories.prototype.categoryDeleteNew = function (oButton) {
|
|
|
+BxDolCategories.prototype.categoryDeleteNew = function (oButton) {
|
|
|
$(oButton).parents('.bx-form-input-category-new:first').remove();
|
|
|
};
|