Skip to content

Commit

Permalink
fixing loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
David Cramer authored and David Cramer committed May 30, 2013
1 parent c1d32f9 commit 9f0822b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions libs/functions.php
Expand Up @@ -885,13 +885,16 @@ function dbt_doShortcode(){

}
function dbt_adminPage(){
global $dbt_interface;
if (!empty($_GET['action'])) {
switch ($_GET['action']) {

case 'edit':
include DBT_PATH . 'edit.php';
break;
case 'render':
$dbt_interface = get_option($_GET['interface']);
//, $dbt_app;
include_once DBT_PATH . 'libs/renderfunctions.php';
echo '<div class="wrap">';
include DBT_PATH . 'render.php';
Expand Down
6 changes: 5 additions & 1 deletion libs/renderfunctions.php
Expand Up @@ -106,7 +106,11 @@ function dbt_buildFormView($Config, $viewType, $entry=false){
$FieldTypes[$type[1]]['display']['placeholder'] = true;
}
$formhtml .= "<div id=\"".$Field."_control\" class=\"control-group ".$isValid." ".$Span."\">\n";
$formhtml .= dbt_makeFormField($Field, $FieldTypes[$type[1]]['display'], $Config['_FieldTitle'][$Field], $Config['_FieldCaption'][$Field], $Val, $viewType, false);
$caption = '';
if(!empty($Config['_FieldCaption'][$Field])){
$caption = $Config['_FieldCaption'][$Field];
}
$formhtml .= dbt_makeFormField($Field, $FieldTypes[$type[1]]['display'], $Config['_FieldTitle'][$Field], $caption, $Val, $viewType, false);
$formhtml .= "</div>\n";

$layout->append($formhtml, $row, $column-1);
Expand Down

0 comments on commit 9f0822b

Please sign in to comment.