diff --git a/AdminAsset.php b/AdminAsset.php deleted file mode 100644 index 286f890d..00000000 --- a/AdminAsset.php +++ /dev/null @@ -1,28 +0,0 @@ - - * @since 1.0 - */ -class AdminAsset extends \yii\web\AssetBundle -{ - /** - * @inheritdoc - */ - public $sourcePath = '@mdm/admin/assets'; - - /** - * @inheritdoc - */ - public $css = [ - 'animate.css', - ]; - - public $depends = [ - 'yii\web\YiiAsset', - ]; -} diff --git a/assets/yii.admin.js b/assets/yii.admin.js deleted file mode 100644 index c726d84c..00000000 --- a/assets/yii.admin.js +++ /dev/null @@ -1,155 +0,0 @@ -yii.admin = (function ($) { - var _onSearch = false; - var pub = { - userId: undefined, - roleName: undefined, - assignUrl: undefined, - searchUrl: undefined, - assign: function (action) { - var params = { - id: pub.userId, - action: action, - roles: $('#list-' + (action == 'assign' ? 'avaliable' : 'assigned')).val(), - }; - $.post(pub.assignUrl, params, - function () { - pub.searchAssignmet('avaliable', true); - pub.searchAssignmet('assigned', true); - }); - }, - searchAssignmet: function (target, force) { - if (!_onSearch || force) { - _onSearch = true; - var $inp = $('#search-' + target); - setTimeout(function () { - var data = { - id: pub.userId, - target: target, - term: $inp.val(), - }; - $.get(pub.searchUrl, data, - function (r) { - var $list = $('#list-' + target); - $list.html(''); - if (r.Roles) { - var $group = $(''); - $.each(r.Roles, function () { - $(''); - $.each(r.Permissions, function () { - $(''); - $.each(r.Roles, function () { - $(''); - $.each(r.Permissions, function () { - $(''); - $.each(r.Routes, function () { - $('