mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 23:44:54 +01:00
- TypeError: $("#userSettingsBtn") is null, line:4
This commit is contained in:
parent
f8fb56e49f
commit
14e9bf0e06
@ -65,20 +65,23 @@
|
|||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$('#userSettingsBtn').click(
|
var userSettingsLink = $('#userSettingsBtn');
|
||||||
function (event) {
|
if (userSettingsLink) {
|
||||||
$('#settings-dialog-modal .modal-body').load("c/account/settings",
|
userSettingsLink.click(
|
||||||
function () {
|
function (event) {
|
||||||
$('#settings-dialog-modal .btn-cancel').unbind('click').click(function () {
|
$('#settings-dialog-modal .modal-body').load("c/account/settings",
|
||||||
$('#settings-dialog-modal').modal("hide");
|
function () {
|
||||||
window.location.reload();
|
$('#settings-dialog-modal .btn-cancel').unbind('click').click(function () {
|
||||||
});
|
$('#settings-dialog-modal').modal("hide");
|
||||||
}
|
window.location.reload();
|
||||||
);
|
});
|
||||||
$('#settings-dialog-modal').modal();
|
}
|
||||||
event.preventDefault();
|
);
|
||||||
|
$('#settings-dialog-modal').modal();
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user