Surround ng-true-value and ng-false-value with '

This commit is contained in:
Kyle Johnson 2015-02-02 19:16:01 -05:00
parent 52fd26cc5d
commit d5b8cd2f78
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class ConfigParserComponent extends Component {
public function getInput($name, $type, $id) { public function getInput($name, $type, $id) {
if ($type == 'checkbox') { if ($type == 'checkbox') {
$string = '<input id="%s" type="checkbox" ng-change="updateConfig(\'%s\', \'%s\')" ng-model="myModel.configData[\'%s\']" ng-true-value="1" ng-false-value="0"><span class="form-control-feedback"></span></div>'; $string = '<input id="%s" type="checkbox" ng-change="updateConfig(\'%s\', \'%s\')" ng-model="myModel.configData[\'%s\']" ng-true-value="\'1\'" ng-false-value="\'0\'"><span class="form-control-feedback"></span></div>';
} elseif ($type == 'text') { } elseif ($type == 'text') {
$string = '<input id="%s" type="text" ng-change="updateConfig(\'%s\', \'%s\')" ng-model="myModel.configData[\'%s\']" class="form-control"><span class="form-control-feedback"></span></div>'; $string = '<input id="%s" type="text" ng-change="updateConfig(\'%s\', \'%s\')" ng-model="myModel.configData[\'%s\']" class="form-control"><span class="form-control-feedback"></span></div>';
} elseif ($type == 'textarea') { } elseif ($type == 'textarea') {