Skip to content

Commit 1d2c58a

Browse files
committed
Building 2.5.13
1 parent bf46f38 commit 1d2c58a

3 files changed

Lines changed: 17 additions & 36 deletions

File tree

mopidy_spotmop/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from services.auth import auth
1212
from mopidy import config, ext
1313

14-
__version__ = '2.5.12'
14+
__version__ = '2.5.13'
1515
__ext_name__ = 'spotmop'
1616
__verbosemode__ = False
1717

mopidy_spotmop/static/app.js

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -32915,10 +32915,13 @@ angular.module('spotmop.search', [])
3291532915
$scope.artists = [];
3291632916
$scope.playlists = [];
3291732917
$scope.type = $stateParams.type;
32918-
$scope.query = $filter('stripAccents')( $stateParams.query );
32918+
$scope.query = '';
32919+
if( $stateParams.query )
32920+
$scope.query = $filter('stripAccents')( $stateParams.query );
32921+
3291932922
$scope.loading = false;
3292032923
var searchDelayer;
32921-
32924+
3292232925
// focus on our search field on load (if not touch device, otherwise we get annoying on-screen keyboard)
3292332926
if( !$scope.isTouchDevice() )
3292432927
$(document).find('.search-form input.query').focus();
@@ -32927,31 +32930,6 @@ angular.module('spotmop.search', [])
3292732930
if( $scope.query )
3292832931
performSearch( $scope.type, $scope.query );
3292932932

32930-
/**
32931-
* Watch our query string for changes
32932-
* When changed, clear all results, wait for 0.5 seconds for next key, then fire off the search
32933-
var tempQuery = '', queryTimeout;
32934-
$scope.$watch('query', function(newValue, oldValue){
32935-
32936-
if( newValue != oldValue && newValue && newValue != '' ){
32937-
$scope.loading = true;
32938-
$scope.tracklist = {tracks: [], type: 'track'};
32939-
$scope.albums = [];
32940-
$scope.artists = [];
32941-
$scope.playlists = [];
32942-
32943-
if (queryTimeout)
32944-
$timeout.cancel(queryTimeout);
32945-
32946-
tempQuery = newValue;
32947-
queryTimeout = $timeout(function() {
32948-
$scope.query = tempQuery;
32949-
performSearch( $scope.type, $scope.query );
32950-
}, 1000);
32951-
}
32952-
})
32953-
**/
32954-
3295532933

3295632934
/**
3295732935
* Fetch the search results
@@ -34259,14 +34237,14 @@ angular.module('spotmop.services.pusher', [
3425934237
}
3426034238

3426134239
// notify server of our actual username
34262-
var name = SettingsService.getSetting('pushername', null)
34240+
var name = SettingsService.getSetting('pushername', '')
3426334241
if( name )
3426434242
service.setMe( name );
3426534243

3426634244
// standard notification, fire it out!
3426734245
}else{
3426834246
// make sure we're not notifying ourselves
34269-
if( data.id != SettingsService.getSetting('pusherid', null) && !SettingsService.getSetting('pusherdisabled', false) )
34247+
if( data.id != SettingsService.getSetting('pusherid', '') && !SettingsService.getSetting('pusherdisabled', false) )
3427034248
$rootScope.$broadcast('spotmop:pusher:received', data);
3427134249
}
3427234250
}
@@ -35759,12 +35737,15 @@ angular.module('spotmop.services.settings', [])
3575935737
* @param property = string (optional sub-property)
3576035738
**/
3576135739
getSetting: function( setting, defaultValue, property ){
35762-
35740+
3576335741
if( typeof(property) === 'undefined')
3576435742
property = false;
3576535743

35744+
// if we're getting a sub-property
3576635745
if( property ){
35767-
if( typeof($localStorage.settings[setting][property]) !== 'undefined' ){
35746+
35747+
// make sure our parent property, and sub-property exist
35748+
if( typeof($localStorage.settings[setting]) !== 'undefined' && typeof($localStorage.settings[setting][property]) !== 'undefined' ){
3576835749
return $localStorage.settings[setting][property];
3576935750
}
3577035751
}else{

0 commit comments

Comments
 (0)