Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
806b84a9
Commit
806b84a9
authored
Sep 20, 2017
by
Mario Aguilar Alves
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit grid error solution
parent
aa68b025
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
dashboard.blade.php
Modules/Dashboard/Resources/views/admin/dashboard.blade.php
+6
-5
No files found.
Modules/Dashboard/Resources/views/admin/dashboard.blade.php
View file @
806b84a9
...
...
@@ -102,25 +102,26 @@
}.bind(this);
this.edit_grid = function () {
mode = jQuery('#edit-grid').data('mode');
var grid = this;
if (mode == 0) {
// enable all the grid editing
_.map(jQuery('.grid-stack > .grid-stack-item:visible'), function (el) {
this
.grid.movable(el, true);
grid
.grid.movable(el, true);
jQuery(el).on('dblclick', function (e) {
this
.grid.resizable(el, true);
grid
.grid.resizable(el, true);
}.bind(this));
}, this);
jQuery('#edit-grid').data('mode', 1).text('{{ trans('dashboard::dashboard.save grid') }}');
} else {
// disable all the grid editing
_.map(jQuery('.grid-stack > .grid-stack-item:visible'), function (el) {
this
.grid.movable(el, false);
this
.grid.resizable(el, false);
grid
.grid.movable(el, false);
grid
.grid.resizable(el, false);
jQuery(el).off('dblclick');
}, this);
jQuery('#edit-grid').data('mode', 0).text('{{ trans('dashboard::dashboard.edit grid') }}');
// run the save mech
this
.save_grid();
grid
.save_grid();
}
}.bind(this);
this.spawn_widget = function (node) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment