70 lines
1.5 KiB
JavaScript
70 lines
1.5 KiB
JavaScript
(function(context,$) {
|
|
|
|
"use strict";
|
|
|
|
context.JK = context.JK || {};
|
|
context.JK.AccountProfileSamples = function(app) {
|
|
var $document = $(document);
|
|
var logger = context.JK.logger;
|
|
var EVENTS = context.JK.EVENTS;
|
|
var api = context.JK.Rest();
|
|
var ui = new context.JK.UIHelper(JK.app);
|
|
var user = {};
|
|
var profileUtils = context.JK.ProfileUtils;
|
|
|
|
var $screen = $('#account-profile-samples');
|
|
var $btnAddJkRecording = $screen.find('')
|
|
|
|
function beforeShow(data) {
|
|
}
|
|
|
|
function afterShow(data) {
|
|
renderSamples();
|
|
}
|
|
|
|
function renderSamples() {
|
|
|
|
}
|
|
|
|
function events() {
|
|
$btnAddJkRecording.click(function(evt) {
|
|
evt.preventDefault();
|
|
ui.launchRecordingSelectorDialog('', function(selectedRecordings) {
|
|
|
|
});
|
|
|
|
return false;
|
|
});
|
|
|
|
$btnAddSoundCloudRecording.click(function(evt) {
|
|
|
|
});
|
|
|
|
$btnAddYouTubeVideo.click(function(evt) {
|
|
|
|
});
|
|
|
|
$btnSaveAndFinish.click(function(evt) {
|
|
$document.triggerHandler(EVENTS.USER_UPDATED, response);
|
|
context.location = "/client#/profile/" + context.JK.currentUserId;
|
|
});
|
|
}
|
|
|
|
function initialize() {
|
|
var screenBindings = {
|
|
'beforeShow': beforeShow,
|
|
'afterShow': afterShow
|
|
};
|
|
|
|
app.bindScreen('account/profile/samples', screenBindings);
|
|
|
|
events();
|
|
}
|
|
|
|
this.initialize = initialize;
|
|
this.beforeShow = beforeShow;
|
|
this.afterShow = afterShow;
|
|
return this;
|
|
};
|
|
|
|
})(window,jQuery); |