diff --git a/web/app/assets/javascripts/accounts.js b/web/app/assets/javascripts/accounts.js
index ba06f74c6..f56fa4897 100644
--- a/web/app/assets/javascripts/accounts.js
+++ b/web/app/assets/javascripts/accounts.js
@@ -111,7 +111,7 @@
$('#account-content-scroller').on('click', '#account-edit-audio-link', function(evt) { evt.stopPropagation(); navToEditAudio(); return false; } );
$('#account-content-scroller').on('avatar_changed', '#profile-avatar', function(evt, newAvatarUrl) { evt.stopPropagation(); updateAvatar(newAvatarUrl); return false; })
- $("#account-content-scroller").on('click', '.view-license', function(evt) { @app.layout.showDialog("jamtrack-license-dialog"); return false; } );
+ $("#account-content-scroller").on('click', '#account-view-license-link', function(evt) {evt.stopPropagation(); app.layout.showDialog('jamtrack-license-dialog'); return false; } );
}
function renderAccount() {
diff --git a/web/app/assets/javascripts/dialog/jamtrackLicenseDialog.js b/web/app/assets/javascripts/dialog/jamtrackLicenseDialog.js
new file mode 100644
index 000000000..c74d71e86
--- /dev/null
+++ b/web/app/assets/javascripts/dialog/jamtrackLicenseDialog.js
@@ -0,0 +1,46 @@
+(function(context,$) {
+
+ "use strict";
+ context.JK = context.JK || {};
+ context.JK.JamtrackLicenseDialog = function(app) {
+ var logger = context.JK.logger;
+ var $dialog = null;
+ var dialogId = 'jamtrack-license-dialog';
+
+ function beforeShow(data) {
+ }
+
+ function afterShow(data) {
+ }
+
+ function afterHide() {
+ }
+
+ function showDialog() {
+ return app.layout.showDialog(dialogId);
+ }
+
+ function events() {
+ }
+
+ function initialize() {
+
+ var dialogBindings = {
+ 'beforeShow' : beforeShow,
+ 'afterShow' : afterShow,
+ 'afterHide': afterHide
+ };
+
+ app.bindDialog(dialogId, dialogBindings);
+
+ $dialog = $('[layout-id="' + dialogId + '"]');
+
+ events();
+ }
+
+ this.initialize = initialize;
+ this.showDialog = showDialog;
+ };
+
+ return this;
+})(window,jQuery);
\ No newline at end of file
diff --git a/web/app/assets/stylesheets/client/jamtrack.css.scss b/web/app/assets/stylesheets/client/jamtrack.css.scss
index 017ad879c..e660b1488 100644
--- a/web/app/assets/stylesheets/client/jamtrack.css.scss
+++ b/web/app/assets/stylesheets/client/jamtrack.css.scss
@@ -193,3 +193,23 @@
}
}
+#jamtrack-license-dialog {
+ .dialog-inner {
+ height: auto;
+ .content-body {
+ max-height: auto;
+ .content-body-scroller {
+ height: 350px;
+ .paragraph {
+ margin-bottom: 1em;
+ }
+ overflow: hidden;
+ }
+ border: 1px solid #222;
+ margin: 4px 4px 8px 4px;
+ }
+ .jamtrack_buttons {
+ margin: 4px 4px 8px 4px;
+ }
+ }
+}
\ No newline at end of file
diff --git a/web/app/views/clients/_account.html.erb b/web/app/views/clients/_account.html.erb
index 6a7c7df5b..9fdc6100a 100644
--- a/web/app/views/clients/_account.html.erb
+++ b/web/app/views/clients/_account.html.erb
@@ -102,7 +102,7 @@
{{data.licenseDetail}}
- JamTracks License
+ JamTracks License