From e7448d63698a2d2be144d02ad09d489727bbb0fb Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 13 Feb 2016 01:19:28 -0500 Subject: [PATCH] update delete smart match entry --- .../bower_components/emby-apiclient/.bower.json | 8 ++++---- .../bower_components/emby-apiclient/apiclient.js | 16 +++------------- dashboard-ui/scripts/autoorganizesmart.js | 12 ++++++------ 3 files changed, 13 insertions(+), 23 deletions(-) diff --git a/dashboard-ui/bower_components/emby-apiclient/.bower.json b/dashboard-ui/bower_components/emby-apiclient/.bower.json index f3acb5d871..d022c04417 100644 --- a/dashboard-ui/bower_components/emby-apiclient/.bower.json +++ b/dashboard-ui/bower_components/emby-apiclient/.bower.json @@ -16,12 +16,12 @@ }, "devDependencies": {}, "ignore": [], - "version": "1.0.35", - "_release": "1.0.35", + "version": "1.0.36", + "_release": "1.0.36", "_resolution": { "type": "version", - "tag": "1.0.35", - "commit": "d84b62c2a98faed179e07ef805e54cd7e6d2e036" + "tag": "1.0.36", + "commit": "2fd64dfab638287a62d38c400d3e738a67e80198" }, "_source": "git://github.com/MediaBrowser/Emby.ApiClient.Javascript.git", "_target": "~1.0.3", diff --git a/dashboard-ui/bower_components/emby-apiclient/apiclient.js b/dashboard-ui/bower_components/emby-apiclient/apiclient.js index 403415dab2..f2f07eeff2 100644 --- a/dashboard-ui/bower_components/emby-apiclient/apiclient.js +++ b/dashboard-ui/bower_components/emby-apiclient/apiclient.js @@ -1127,16 +1127,6 @@ }); }; - self.performMovieOrganization = function (id, options) { - - var url = self.getUrl("Library/FileOrganizations/" + id + "/Movie/Organize", options || {}); - - return self.ajax({ - type: "POST", - url: url - }); - }; - self.getLiveTvSeriesTimer = function (id) { if (!id) { @@ -3438,12 +3428,12 @@ }); }; - self.deleteSmartMatchEntry = function (name, options) { + self.deleteSmartMatchEntries = function (entries) { - var url = self.getUrl("Library/FileOrganizations/SmartMatches", options || {}); + var url = self.getUrl("Library/FileOrganizations/SmartMatches"); var postData = { - Name: name + Entries: entries }; return self.ajax({ diff --git a/dashboard-ui/scripts/autoorganizesmart.js b/dashboard-ui/scripts/autoorganizesmart.js index 7a922e83d2..72e698ba54 100644 --- a/dashboard-ui/scripts/autoorganizesmart.js +++ b/dashboard-ui/scripts/autoorganizesmart.js @@ -105,14 +105,14 @@ $('.divMatchInfos', page).on('click', '.btnDeleteMatchEntry', function () { var button = this; - var id = button.getAttribute('data-id'); - var options = { + var entries = [ + { + Name: button.getAttribute('data-id'), + Value: button.getAttribute('data-matchstring') + }]; - MatchString: button.getAttribute('data-matchstring') - }; - - ApiClient.deleteSmartMatchEntry(id, options).then(function () { + ApiClient.deleteSmartMatchEntries(entries).then(function () { reloadList(page);