From 893d60ed44b0f0ce9b32b7f55ba638d858f0dcdc Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Mon, 14 Sep 2015 18:29:43 -0400 Subject: [PATCH] Revert "SAAS-1061 - implement podcast list view skeleton; small bugfixes" This reverts commit 0fcf6a8dac09191e9a5600aa8e6b45d61f03977f. --- airtime_mvc/application/Bootstrap.php | 1 - airtime_mvc/application/airtime-boot.php | 2 - airtime_mvc/application/common/enum/Enum.php | 47 -- .../application/common/enum/MediaType.php | 14 - .../application/layouts/scripts/layout.phtml | 22 +- airtime_mvc/application/models/StoredFile.php | 12 +- .../partialviews/dashboard-sub-nav.php | 30 - .../scripts/showbuilder/builderDialog.phtml | 25 +- .../views/scripts/showbuilder/index.phtml | 1 - .../public/ajax/library_placeholders.json | 28 + airtime_mvc/public/css/dashboard.css | 12 - airtime_mvc/public/css/styles.css | 2 +- .../library/events/library_showbuilder.js | 28 +- .../public/js/airtime/library/library.js | 578 ++++++++---------- .../public/js/airtime/library/plupload.js | 127 +++- .../js/airtime/showbuilder/main_builder.js | 22 +- 16 files changed, 439 insertions(+), 512 deletions(-) delete mode 100644 airtime_mvc/application/common/enum/Enum.php delete mode 100644 airtime_mvc/application/common/enum/MediaType.php delete mode 100644 airtime_mvc/application/views/scripts/partialviews/dashboard-sub-nav.php create mode 100644 airtime_mvc/public/ajax/library_placeholders.json diff --git a/airtime_mvc/application/Bootstrap.php b/airtime_mvc/application/Bootstrap.php index e64c74136..26a6843c7 100644 --- a/airtime_mvc/application/Bootstrap.php +++ b/airtime_mvc/application/Bootstrap.php @@ -31,7 +31,6 @@ require_once "Auth.php"; require_once "interface/OAuth2.php"; require_once "TaskManager.php"; require_once "UsabilityHints.php"; -require_once "MediaType.php"; require_once __DIR__.'/models/formatters/LengthFormatter.php'; require_once __DIR__.'/services/CeleryService.php'; require_once __DIR__.'/services/SoundcloudService.php'; diff --git a/airtime_mvc/application/airtime-boot.php b/airtime_mvc/application/airtime-boot.php index 5ed3cb4bc..08a5b9869 100644 --- a/airtime_mvc/application/airtime-boot.php +++ b/airtime_mvc/application/airtime-boot.php @@ -36,8 +36,6 @@ set_include_path(implode(PATH_SEPARATOR, array( ))); set_include_path(APPLICATION_PATH . 'common' . PATH_SEPARATOR . get_include_path()); -set_include_path(APPLICATION_PATH . 'common/enum' . PATH_SEPARATOR . get_include_path()); -set_include_path(APPLICATION_PATH . 'common/interface' . PATH_SEPARATOR . get_include_path()); //Propel classes. set_include_path(APPLICATION_PATH . 'models' . PATH_SEPARATOR . get_include_path()); diff --git a/airtime_mvc/application/common/enum/Enum.php b/airtime_mvc/application/common/enum/Enum.php deleted file mode 100644 index b0d34fbc3..000000000 --- a/airtime_mvc/application/common/enum/Enum.php +++ /dev/null @@ -1,47 +0,0 @@ -getConstants(); - } - return self::$constCacheArray[$calledClass]; - } - - public static function isValidName($name, $strict = false) { - $constants = self::getConstants(); - - if ($strict) { - return array_key_exists($name, $constants); - } - - $keys = array_map('strtolower', array_keys($constants)); - return in_array(strtolower($name), $keys); - } - - public static function isValidValue($value) { - $values = array_values(self::getConstants()); - return in_array($value, $values, $strict = true); - } - - public static function getDefault() { - return static::__default; - } - -} \ No newline at end of file diff --git a/airtime_mvc/application/common/enum/MediaType.php b/airtime_mvc/application/common/enum/MediaType.php deleted file mode 100644 index 69843c0d7..000000000 --- a/airtime_mvc/application/common/enum/MediaType.php +++ /dev/null @@ -1,14 +0,0 @@ - - + - - - - + +
+
+
+
+
+
+
+