-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
119 additions
and
16 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 |
---|---|---|
|
@@ -9,4 +9,5 @@ reports/ | |
.project | ||
.pydevproject | ||
django_pagetree.egg-info | ||
docs/_build/ | ||
docs/_build/ | ||
node_modules |
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,5 @@ | ||
{ | ||
"preset": "google", | ||
"validateIndentation": 4, | ||
"disallowTrailingWhitespace": true | ||
} |
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,18 @@ | ||
JS_FILES=pagetree/static/pagetree/js/src | ||
|
||
node_modules/jshint/bin/jshint: | ||
npm install jshint@~2.9.2 --prefix . | ||
|
||
node_modules/jscs/bin/jscs: | ||
npm install jscs@~3.0.3 --prefix . | ||
|
||
jshint: node_modules/jshint/bin/jshint | ||
jshint $(JS_FILES) | ||
|
||
jscs: node_modules/jscs/bin/jscs | ||
jscs $(JS_FILES) | ||
|
||
clean: | ||
rm -rf node_modules | ||
|
||
.PHONY: jshint jscs clean |
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,49 @@ | ||
.pagetree-loading { | ||
visibility: hidden; | ||
display: inline; | ||
margin-left: 10px; | ||
} | ||
|
||
.pagetree-loading-spinner { | ||
display: inline-block; | ||
font-size: 10px; | ||
border-top: 0.2em solid rgba(255, 255, 255, 0); | ||
border-right: 0.2em solid rgba(255, 255, 255, 0); | ||
border-bottom: 0.2em solid rgba(255, 255, 255, 0); | ||
border-left: 0.2em solid #2e6da4; | ||
-webkit-transform: translateZ(0); | ||
-ms-transform: translateZ(0); | ||
transform: translateZ(0); | ||
-webkit-animation: load8 0.9s infinite linear; | ||
animation: load8 0.9s infinite linear; | ||
} | ||
.pagetree-loading-spinner, | ||
.pagetree-loading-spinner:after { | ||
border-radius: 50%; | ||
width: 2em; | ||
height: 2em; | ||
} | ||
@-webkit-keyframes load8 { | ||
0% { | ||
-webkit-transform: rotate(0deg); | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
-webkit-transform: rotate(360deg); | ||
transform: rotate(360deg); | ||
} | ||
} | ||
@keyframes load8 { | ||
0% { | ||
-webkit-transform: rotate(0deg); | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
-webkit-transform: rotate(360deg); | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
.pagetree-loading-text { | ||
margin-left: 5px; | ||
} |
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,9 @@ | ||
$(document).ready(function() { | ||
var $container = $('.pagetree-clone-form'); | ||
var $button = $container.find('button[type="submit"]'); | ||
$button.click(function() { | ||
console.log('click'); | ||
$container.find('.pagetree-loading').css('visibility', 'visible'); | ||
return false; | ||
}); | ||
}); |
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,4 @@ | ||
<div class="pagetree-loading"> | ||
<span class="pagetree-loading-spinner"></span> | ||
<span class="pagetree-loading-text">Loading...</span> | ||
</div> |