mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: admin jquerui requires
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
@import (inline) 'jquery-ui/themes/base/datepicker.css';
|
||||
@import (inline) 'jquery-ui/themes/base/autocomplete.css';
|
||||
@import (inline) 'jquery-ui/themes/base/resizable.css';
|
||||
@import (inline) 'jquery-ui/themes/base/selectable.css';
|
||||
@import (inline) 'jquery-ui/themes/base/draggable.css';
|
||||
@import (inline) 'jquery-ui/themes/base/sortable.css';
|
||||
@import (inline) 'jquery-ui/themes/base/theme.css';
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
define('admin/extend/plugins', ['jqueryui', 'translator', 'benchpress'], function (jqueryui, translator, Benchpress) {
|
||||
define('admin/extend/plugins', [
|
||||
'translator',
|
||||
'benchpress',
|
||||
'jquery-ui/widgets/sortable',
|
||||
], function (translator, Benchpress) {
|
||||
var Plugins = {};
|
||||
Plugins.init = function () {
|
||||
var pluginsList = $('.plugins');
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
define('admin/extend/widgets', ['jqueryui'], function () {
|
||||
define('admin/extend/widgets', [
|
||||
'jquery-ui/widgets/sortable',
|
||||
'jquery-ui/widgets/draggable',
|
||||
'jquery-ui/widgets/droppable',
|
||||
'jquery-ui/widgets/datepicker',
|
||||
], function () {
|
||||
var Widgets = {};
|
||||
|
||||
Widgets.init = function () {
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
define('admin/modules/selectable', ['jqueryui'], function () {
|
||||
define('admin/modules/selectable', [
|
||||
'jquery-ui/widgets/selectable',
|
||||
], function () {
|
||||
var selectable = {};
|
||||
|
||||
selectable.enable = function (containerEl, targets) {
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
define('admin/settings/navigation', ['translator', 'iconSelect', 'benchpress', 'jqueryui'], function (translator, iconSelect, Benchpress) {
|
||||
define('admin/settings/navigation', [
|
||||
'translator',
|
||||
'iconSelect',
|
||||
'benchpress',
|
||||
'jquery-ui/widgets/draggable',
|
||||
'jquery-ui/widgets/droppable',
|
||||
'jquery-ui/widgets/sortable',
|
||||
], function (translator, iconSelect, Benchpress) {
|
||||
var navigation = {};
|
||||
var available;
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
define('settings/sorted-list', ['benchpress', 'jqueryui'], function (benchpress) {
|
||||
define('settings/sorted-list', [
|
||||
'benchpress',
|
||||
'jquery-ui/widgets/sortable',
|
||||
], function (benchpress) {
|
||||
var SortedList;
|
||||
var Settings;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user