-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add button to allow better list dragging
When dealing with many lists with many links, it becomes hard for the user to drag lists because it needs both scrolling and dragging. Adds a button to collapse the links, allowing easier dragging and dropping.
- Loading branch information
Showing
5 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
//= require jquery-ui.sortable.min | ||
//= require jquery.clicktoggle | ||
//= require_tree . | ||
//= require_self | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$.fn.clickToggle = function(a,b){ | ||
return this.each(function(){ | ||
var clicked = false; | ||
$(this).bind("click",function(){ | ||
if (clicked) { | ||
clicked = false; | ||
return b.apply(this,arguments); | ||
} | ||
clicked = true; | ||
return a.apply(this,arguments); | ||
}); | ||
}); | ||
}; |