mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Admin theme upgrade fix
This commit is contained in:
@@ -24,7 +24,7 @@ if($core->get('admintheme') != 'bootstrap')
|
|||||||
{
|
{
|
||||||
$core->update('admintheme','bootstrap');
|
$core->update('admintheme','bootstrap');
|
||||||
$core->update('adminstyle','infopanel');
|
$core->update('adminstyle','infopanel');
|
||||||
$core->update('admincss','admin_style.css');
|
$core->update('admincss','admin_dark.css');
|
||||||
$core->set('e_jslib_core',array('prototype' => 'none', 'jquery'=> 'auto'));
|
$core->set('e_jslib_core',array('prototype' => 'none', 'jquery'=> 'auto'));
|
||||||
$core->save();
|
$core->save();
|
||||||
e107::getRedirect()->redirect(e_SELF);
|
e107::getRedirect()->redirect(e_SELF);
|
||||||
|
@@ -280,7 +280,7 @@ if (!function_exists('multiarray_sort'))
|
|||||||
$order = strtolower($order);
|
$order = strtolower($order);
|
||||||
foreach ($array as $i => $arr)
|
foreach ($array as $i => $arr)
|
||||||
{
|
{
|
||||||
$sort_values[$i] = $arr[$key];
|
$sort_values[$i] = varset($arr[$key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$natsort)
|
if(!$natsort)
|
||||||
|
@@ -11,5 +11,10 @@
|
|||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
|
|
||||||
$caption = "Dashboard";
|
$caption = "Dashboard";
|
||||||
$text = "This page provides you with an overview of site activity";
|
$text = "This page provides you with an overview of site activity.<br /><br />";
|
||||||
|
if(e107::getPref('admincss')=='admin_dark.css')
|
||||||
|
{
|
||||||
|
$text .= "<small>Theme too dark? <a class='btn btn-mini btn-inverse' href='".e_ADMIN."theme.php?mode=admin'>Change it here</a></small>";
|
||||||
|
|
||||||
|
}
|
||||||
$ns -> tablerender($caption, $text);
|
$ns -> tablerender($caption, $text);
|
||||||
|
@@ -20,7 +20,14 @@ $(document).ready(function()
|
|||||||
// $(this).css( 'cursor', 'pointer' )
|
// $(this).css( 'cursor', 'pointer' )
|
||||||
});
|
});
|
||||||
|
|
||||||
$.fn.editable.defaults.mode = 'popup';
|
if($.fn.editable.defaults.mode)
|
||||||
|
{
|
||||||
|
$.fn.editable.defaults.mode = 'popup';
|
||||||
|
}
|
||||||
|
|
||||||
|
$("#uiModal").draggable({
|
||||||
|
handle: ".modal-header"
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
$('div.e-container').editable({
|
$('div.e-container').editable({
|
||||||
|
Reference in New Issue
Block a user