Added setColumnFilter(oTable)

This commit is contained in:
Rudi Grinberg 2012-09-17 11:58:08 -04:00
parent fab7042ce6
commit b913b067c2
2 changed files with 11 additions and 5 deletions

View file

@ -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()
@ -81,7 +82,10 @@ class Application_Model_Soundcloud
); );
return $response; return $response;
} else {
throw new NoSoundCloundToken();
}
} }
} }
} class NoSoundCloundToken extends Exception {}

View file

@ -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);