Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/firstrunwizard.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-21 23:13:59 +0300
committerJoas Schilling <coding@schilljs.com>2016-09-21 23:13:59 +0300
commit3bc3570295992ff76c67ae77b77f9d5c30bf2c13 (patch)
tree980a45ce9f377404d4c2b6f57e63539fda57954e /js/firstrunwizard.js
parent591c12beafaf578178ec68ff11bb2bba0240dd47 (diff)
Clean up the template file
Diffstat (limited to 'js/firstrunwizard.js')
-rw-r--r--js/firstrunwizard.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/js/firstrunwizard.js b/js/firstrunwizard.js
index 339c8020..983d7bee 100644
--- a/js/firstrunwizard.js
+++ b/js/firstrunwizard.js
@@ -1,4 +1,4 @@
-function showfirstrunwizard(){
+function showFirstRunWizard(){
$.colorbox({
opacity: 0.7,
transition: 'elastic',
@@ -6,7 +6,7 @@ function showfirstrunwizard(){
width: '80%',
height: '80%',
href: OC.generateUrl('/apps/firstrunwizard/wizard'),
- onClosed : function(){
+ onClosed : function() {
$.ajax({
url: OC.generateUrl('/apps/firstrunwizard/wizard'),
type: 'delete'
@@ -15,10 +15,12 @@ function showfirstrunwizard(){
});
}
-$('#showWizard').live('click', function () {
- showfirstrunwizard();
-});
+$(document).ready(function() {
+ $('#showWizard').live('click', function () {
+ showFirstRunWizard();
+ });
-$('#closeWizard').live('click', function () {
+ $('#closeWizard').live('click', function () {
$.colorbox.close();
+ });
});