Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
fix(options): updated options to match rename
Browse files Browse the repository at this point in the history
  • Loading branch information
rosspi committed May 22, 2017
1 parent 14552c9 commit 9ee8caf
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
6 changes: 3 additions & 3 deletions dist/jquery.gridstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ var Handlers = (function () {
return;
}

if (options.enableDragging && !$cell.hasClass(options.dragCellClass)) {
if (options.draggable && !$cell.hasClass(options.dragCellClass)) {

this.internal.SetMouseDownData(mouseEvent, $cell);

Expand All @@ -225,7 +225,7 @@ var Handlers = (function () {
// clear initially.
this.internal.LastMouseOverCellTarget = null;

if (!gridstrapContext.options.enableDragging) {
if (!gridstrapContext.options.draggable) {
return;
}

Expand Down Expand Up @@ -356,7 +356,7 @@ var Handlers = (function () {
var context = this.setup.Context;
var options = this.setup.Options;

if (!options.enableDragging) {
if (!options.draggable) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.gridstrap.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
* Made by Ross P
* Under MIT License
*/
.gridstrap-cell-visible{position:absolute!important;transition:width 1.5s,height .5s,left 1.5s,top 1.5s;transition:width .2s,height .2s,left .2s,top .2s}.gridstrap-cell-hidden{opacity:.1;pointer-events:none}.gridstrap-cell-drag{transition:width .1s,height .1s,left .1s,top .1s;z-index:10000}.gridstrap-cell-resize{transition:none;z-index:10000}.gridstack-noncontiguous{opacity:.02}
.gridstrap-cell-visible{position:absolute!important;transition:width .2s,height .2s,left .2s,top .2s}.gridstrap-cell-hidden{opacity:0;pointer-events:none}.gridstrap-cell-drag{transition:width 50ms,height 50ms,left 50ms,top 50ms;z-index:10000}.gridstrap-cell-resize{transition:width 50ms,height 50ms,left 50ms,top 50ms;z-index:10000}.gridstack-noncontiguous{opacity:.02}
2 changes: 1 addition & 1 deletion dist/jquery.gridstrap.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jquery.gridstrap.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/jquery.gridstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ var Handlers = (function () {
return;
}

if (options.enableDragging && !$cell.hasClass(options.dragCellClass)) {
if (options.draggable && !$cell.hasClass(options.dragCellClass)) {

this.internal.SetMouseDownData(mouseEvent, $cell);

Expand All @@ -233,7 +233,7 @@ var Handlers = (function () {
// clear initially.
this.internal.LastMouseOverCellTarget = null;

if (!gridstrapContext.options.enableDragging) {
if (!gridstrapContext.options.draggable) {
return;
}

Expand Down Expand Up @@ -364,7 +364,7 @@ var Handlers = (function () {
var context = this.setup.Context;
var options = this.setup.Options;

if (!options.enableDragging) {
if (!options.draggable) {
return;
}

Expand Down
3 changes: 1 addition & 2 deletions docs/responsive.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<!DOCTYPE html>
<html lang="en-us">
<head>
Expand All @@ -11,7 +10,7 @@

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<link rel="stylesheet" href="./jquery,gridstrap.css">
<link rel="stylesheet" href="./jquery.gridstrap.css">
<link rel="stylesheet" href="./indexstyle.css">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
Expand Down
6 changes: 3 additions & 3 deletions src/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class Handlers {
return;
}

if (options.enableDragging && !$cell.hasClass(options.dragCellClass)) {
if (options.draggable && !$cell.hasClass(options.dragCellClass)) {

this.internal.SetMouseDownData(mouseEvent, $cell);

Expand All @@ -55,7 +55,7 @@ export class Handlers {
// clear initially.
this.internal.LastMouseOverCellTarget = null;

if (!gridstrapContext.options.enableDragging) {
if (!gridstrapContext.options.draggable) {
return;
}

Expand Down Expand Up @@ -186,7 +186,7 @@ export class Handlers {
let context = this.setup.Context;
let options = this.setup.Options;

if (!options.enableDragging) {
if (!options.draggable) {
return;
}

Expand Down

0 comments on commit 9ee8caf

Please sign in to comment.