Skip to content

Commit

Permalink
Building 2.5.13
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedb committed Feb 7, 2016
1 parent bf46f38 commit 1d2c58a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 36 deletions.
2 changes: 1 addition & 1 deletion mopidy_spotmop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from services.auth import auth
from mopidy import config, ext

__version__ = '2.5.12'
__version__ = '2.5.13'
__ext_name__ = 'spotmop'
__verbosemode__ = False

Expand Down
43 changes: 12 additions & 31 deletions mopidy_spotmop/static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32915,10 +32915,13 @@ angular.module('spotmop.search', [])
$scope.artists = [];
$scope.playlists = [];
$scope.type = $stateParams.type;
$scope.query = $filter('stripAccents')( $stateParams.query );
$scope.query = '';
if( $stateParams.query )
$scope.query = $filter('stripAccents')( $stateParams.query );

$scope.loading = false;
var searchDelayer;

// focus on our search field on load (if not touch device, otherwise we get annoying on-screen keyboard)
if( !$scope.isTouchDevice() )
$(document).find('.search-form input.query').focus();
Expand All @@ -32927,31 +32930,6 @@ angular.module('spotmop.search', [])
if( $scope.query )
performSearch( $scope.type, $scope.query );

/**
* Watch our query string for changes
* When changed, clear all results, wait for 0.5 seconds for next key, then fire off the search
var tempQuery = '', queryTimeout;
$scope.$watch('query', function(newValue, oldValue){

if( newValue != oldValue && newValue && newValue != '' ){
$scope.loading = true;
$scope.tracklist = {tracks: [], type: 'track'};
$scope.albums = [];
$scope.artists = [];
$scope.playlists = [];

if (queryTimeout)
$timeout.cancel(queryTimeout);

tempQuery = newValue;
queryTimeout = $timeout(function() {
$scope.query = tempQuery;
performSearch( $scope.type, $scope.query );
}, 1000);
}
})
**/


/**
* Fetch the search results
Expand Down Expand Up @@ -34259,14 +34237,14 @@ angular.module('spotmop.services.pusher', [
}

// notify server of our actual username
var name = SettingsService.getSetting('pushername', null)
var name = SettingsService.getSetting('pushername', '')
if( name )
service.setMe( name );

// standard notification, fire it out!
}else{
// make sure we're not notifying ourselves
if( data.id != SettingsService.getSetting('pusherid', null) && !SettingsService.getSetting('pusherdisabled', false) )
if( data.id != SettingsService.getSetting('pusherid', '') && !SettingsService.getSetting('pusherdisabled', false) )
$rootScope.$broadcast('spotmop:pusher:received', data);
}
}
Expand Down Expand Up @@ -35759,12 +35737,15 @@ angular.module('spotmop.services.settings', [])
* @param property = string (optional sub-property)
**/
getSetting: function( setting, defaultValue, property ){
if( typeof(property) === 'undefined')
property = false;

// if we're getting a sub-property
if( property ){
if( typeof($localStorage.settings[setting][property]) !== 'undefined' ){

// make sure our parent property, and sub-property exist
if( typeof($localStorage.settings[setting]) !== 'undefined' && typeof($localStorage.settings[setting][property]) !== 'undefined' ){
return $localStorage.settings[setting][property];
}
}else{
Expand Down
Loading

0 comments on commit 1d2c58a

Please sign in to comment.