Commit 9b833976 authored by Marcel Rieger's avatar Marcel Rieger
Browse files

Minor code cleaning.

parent 1838a308
......@@ -33,31 +33,18 @@
var tmpl = {
wrapper: '\
<div class="modal fade" style="position: absolute; overflow: hidden; margin: 0px;">\
<div class="modal-dialog" style="position: relative; height: 100%; width: 100%; margin: 0px; overflow: hidden;">\
<div class="modal-content" style="margin: 40px auto; min-width: 300px; max-width: 75%; width: 600px; overflow: hidden;">\
</div>\
</div>\
</div>\
',
header: '\
<div class="modal-header">\
<button type="button" class="close" aria-hidden="true">\
wrapper: "<div class='modal fade' style='position: absolute; overflow: hidden; margin: 0px;'><div class='modal-dialog' style='position: relative; height: 100%; width: 100%; margin: 0px; overflow: hidden;'><div class='modal-content' style='margin: 40px auto; min-width: 300px; max-width: 75%; width: 600px; overflow: hidden;'></div></div></div>",
header: "\
<div class='modal-header'>\
<button type='button' class='close' aria-hidden='true'>\
&times;\
</button>\
<h4 class="modal-title"></h4>\
<h4 class='modal-title'></h4>\
</div>\
',
body: '\
<div class="modal-body" style="overflow: auto;"></div>\
',
footer: '\
<div class="modal-footer"></div>\
',
button: '\
<button type="button" class="btn"></button>\
'
",
body: "<div class='modal-body' style='overflow: auto;'></div>",
footer: "<div class='modal-footer'></div>",
button: "<button type='button' class='btn'></button>"
};
......
......@@ -280,7 +280,7 @@ var Vispa = Emitter.extend({
$(".vispa-nav #reset-password").click(function(event) {
self.POST(vispa.url.dynamic("/ajax/forgotpassword"), {username: vispaUser.name})
.done(function() {
var header = "<i class='glyphicon glyphicon-envelope'></i> Success"
var header = "<i class='glyphicon glyphicon-envelope'></i> Success";
vispa.messenger.alert("Further instructions have been sent to your mail address!", {
header: header
});
......@@ -302,7 +302,7 @@ var Vispa = Emitter.extend({
header: "<i class='glyphicon glyphicon-question-sign'></i> Create account"
});
event.preventDefault();
})
});
}
return this;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment