Skip to content

Commit

Permalink
Set the Kaltura Dark skin to default
Browse files Browse the repository at this point in the history
git-svn-id: http://www.kaltura.org/kalorg/html5video/trunk/mwEmbed@1369 b58a29cf-3064-46da-94c6-1c29cc75c8e5
  • Loading branch information
Ran Yefet committed Dec 21, 2010
1 parent 42b3591 commit 21c4b8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ mw.setDefaultConfig ( {
'enabledModules' : mwEnabledModuleList,

// Default jquery ui skin name
'jQueryUISkin' : 'redmond',
'jQueryUISkin' : 'kdark',

// The mediaWiki path of mwEmbed
'mediaWikiEmbedPath' : 'js/mwEmbed/',
Expand Down Expand Up @@ -154,6 +154,7 @@ mw.addResourcePaths( {
"mw.style.ui_le-frog" : "skins/jquery.ui.themes/le-frog/jquery-ui-1.7.2.css",
"mw.style.ui_start" : "skins/jquery.ui.themes/start/jquery-ui-1.7.2.css",
"mw.style.ui_sunny" : "skins/jquery.ui.themes/sunny/jquery-ui-1.7.2.css",
"mw.style.ui_kdark" : "skins/jquery.ui.themes/kaltura-dark/jquery-ui-1.7.2.css",

"mw.style.mwCommon" : "skins/common/mw.style.mwCommon.css",

Expand Down
4 changes: 2 additions & 2 deletions mwEmbedFrame.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class mwEmbedFrame {
);
var $playerIframeId = 'iframeVid';
var $debug = false;
var $theme = 'redmond';
var $theme = 'kdark';


// When used in direct source mode the source asset.
Expand Down Expand Up @@ -101,7 +101,7 @@ private function parseRequest(){
if( isset( $_REQUEST['theme'] ) &&
in_array($_REQUEST['theme'],
array('darkness','le-frog', 'redmond','start',
'sunny')) ){
'sunny', 'kdark')) ){
$this->theme = $_REQUEST['theme'];
}

Expand Down
2 changes: 1 addition & 1 deletion mwEmbedLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ function kAddScript(){
if( preMwEmbedConfig['jQueryUISkin'] ){
jsRequestSet.push( [ 'mw.style.ui_' + preMwEmbedConfig['jQueryUISkin'] ] );
} else {
jsRequestSet.push( [ 'mw.style.ui_redmond' ] );
jsRequestSet.push( [ 'mw.style.ui_kdark' ] );
}

var objectPlayerList = kGetKalturaPlayerList();
Expand Down

0 comments on commit 21c4b8c

Please sign in to comment.