Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
View
16 JavaScript/App/MainForm.js
@@ -183,20 +183,20 @@ module.exports = new Class({
store.addEvent('upload', this.bound('onUpload'));
this.update(data);
- var cancelUpload = this.bound('cancelUpload');
- object.addEvent('show:once', function() {
+ object.addEvent('show:once', (function() {
if (hasUpload) {
var label = object.toElement().getElement('.input_file_label');
var popover = label ? label.getInstanceOf(Popover) : null;
var cancelButton = popover ? popover.getPopover().getElement('.cancelUpload') : null;
- if (cancelButton) cancelButton.addEvent('click', cancelUpload);
+ if (cancelButton) cancelButton.addEvent('click', this.bound('cancelUpload'));
+ }
+
+ if (isNewProduction) {
+ var select = object.toElement().getElement(this.options.presetChooserSelector);
+ if (select) select.addEvent('change', this.bound('onPresetSelect'));
}
- });
- object.addEvent('insert:once', this.updateAlgorithms.bind(this, data));
- if (isNewProduction) object.addEvent('show:once', (function() {
- var select = object.toElement().getElement(this.options.presetChooserSelector);
- if (select) select.addEvent('change', this.bound('onPresetSelect'));
+ this.updateAlgorithms(data);
}).bind(this));
View.getMain().push(this.getDisplayType(), object);
View
3  JavaScript/App/Metadata.js
@@ -40,8 +40,7 @@ exports.createView = function(store, data) {
onShow: function() {
var metadata = store.get('metadata');
this.unserialize(Object.append({
- 'metadata.year': (new Date).getFullYear(),
- 'metadata.genre': Auphonic.DefaultGenre
+ 'metadata.year': (new Date).getFullYear()
}, metadata));
}
});
View
2  JavaScript/App/OutgoingService.js
@@ -147,7 +147,7 @@ exports.createView = function(store) {
}
};
- object.addEvent('insert:once', function() {
+ object.addEvent('show:once', function() {
var parent = object.toElement();
var elements = parent.getElements('input[type=checkbox][data-uuid]');
elements.addEvent('change', onChange);
View
1  JavaScript/Auphonic.js
@@ -6,7 +6,6 @@ exports.IssuesURL = 'https://github.com/auphonic/auphonic-mobile/issues';
exports.RegisterURL = 'https://auphonic.com/accounts/register/';
exports.ExternalServicesURL = 'https://auphonic.com/engine/services/';
exports.TeamImage = 'https://auphonic.com/media/pics/AuphonicTeam1_small.jpg';
-exports.DefaultGenre = 'Auphonic Production';
exports.TwitterURL = 'https://twitter.com/auphonic';
exports.FacebookURL = 'https://www.facebook.com/pages/auphonic/217115551651035';
exports.DefaultFileName = 'mobile-recording-{uuid}';

No commit comments for this range

Something went wrong with that request. Please try again.