Added setColumnFilter(oTable)
This commit is contained in:
parent
fab7042ce6
commit
b913b067c2
|
@ -8,8 +8,9 @@ class Application_Model_Soundcloud
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
global $CC_CONFIG;
|
global $CC_CONFIG;
|
||||||
|
$this->_soundcloud = new Services_Soundcloud(
|
||||||
$this->_soundcloud = new Services_Soundcloud($CC_CONFIG['soundcloud-client-id'], $CC_CONFIG['soundcloud-client-secret']);
|
$CC_CONFIG['soundcloud-client-id'],
|
||||||
|
$CC_CONFIG['soundcloud-client-secret']);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getToken()
|
private function getToken()
|
||||||
|
@ -51,9 +52,9 @@ class Application_Model_Soundcloud
|
||||||
//YYYY-MM-DD-HH-mm-SS
|
//YYYY-MM-DD-HH-mm-SS
|
||||||
$release = explode("-", $release);
|
$release = explode("-", $release);
|
||||||
|
|
||||||
$track_data['track[release_year]'] = $release[0];
|
$track_data['track[release_year]'] = $release[0];
|
||||||
$track_data['track[release_month]'] = $release[1];
|
$track_data['track[release_month]'] = $release[1];
|
||||||
$track_data['track[release_day]'] = $release[2];
|
$track_data['track[release_day]'] = $release[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($genre) && $genre != "") {
|
if (isset($genre) && $genre != "") {
|
||||||
|
@ -81,7 +82,10 @@ class Application_Model_Soundcloud
|
||||||
);
|
);
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
|
} else {
|
||||||
|
throw new NoSoundCloundToken();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class NoSoundCloundToken extends Exception {}
|
||||||
|
|
|
@ -647,6 +647,8 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
setColumnFilter(oTable);
|
||||||
oTable.fnSetFilteringDelay(350);
|
oTable.fnSetFilteringDelay(350);
|
||||||
|
|
||||||
$libContent.find(".dataTables_scrolling").css("max-height", tableHeight);
|
$libContent.find(".dataTables_scrolling").css("max-height", tableHeight);
|
||||||
|
|
Loading…
Reference in New Issue