fixed html parsing error in rating field

This commit is contained in:
David Baldwynn 2016-05-16 18:53:17 -07:00
parent e6232e467f
commit e787630032
4 changed files with 23 additions and 21 deletions

View file

@ -58,7 +58,7 @@ angular.module('forms').directive('autoSaveForm', ['$rootScope', '$timeout', fun
$rootScope[$attrs.autoSaveCallback](true,
function(err){
if(!err){
console.log('\n\nForm data persisted -- setting pristine flag');
//console.log('\n\nForm data persisted -- setting pristine flag');
$formCtrl.$setPristine();
$formCtrl.$setUntouched();
}else{
@ -70,12 +70,12 @@ angular.module('forms').directive('autoSaveForm', ['$rootScope', '$timeout', fun
//Update/Save Form if any Form fields are Dirty and Touched
$scope.$watch(function(newValue, oldValue) {
console.log('introParagraphStartPage.$dirty: '+$scope.editForm.introParagraphStartPage.$dirty);
console.log('introParagraphStartPage.$touched: '+$scope.editForm.introParagraphStartPage.$touched);
//console.log('introParagraphStartPage.$dirty: '+$scope.editForm.introParagraphStartPage.$dirty);
//console.log('introParagraphStartPage.$touched: '+$scope.editForm.introParagraphStartPage.$touched);
if($rootScope.finishedRender && $scope.anyDirtyAndTouched($scope.editForm) && !$rootScope.saveInProgress){
console.log('Form saving started');
//console.log('Form saving started');
debounceSave();
console.log('introParagraphStartPage.$dirty AFTER: '+$scope.editForm.introParagraphStartPage.$dirty);
//console.log('introParagraphStartPage.$dirty AFTER: '+$scope.editForm.introParagraphStartPage.$dirty);
}
});

View file

@ -19,9 +19,12 @@ angular.module('forms').directive('editFormDirective', ['$rootScope', 'FormField
//Setup UI-Sortable
$scope.sortableOptions = {
appendTo: '.dropzone',
cursorAt: { top: -160 }
cursorAt: { top: -155 },
forceHelperSize: true,
forcePlaceholderSize: true
};
console.log($scope.sortableOptions);
//Populate AddField with all available form field types

View file

@ -1,5 +1,5 @@
<div class="textfield field row"
on-enter-key="nextField()"
on-enter-key="nextField()">
<div class="col-xs-12 field-title" ng-style="{'color': design.colors.questionColor}">
<h3>
<small class="field-number">

View file

@ -165,12 +165,11 @@
<div class="col-sm-12 col-md-8 dropzoneContainer">
<accordion close-others="accordion.oneAtATime"
ui-floating="true"
ui-sortable="sortableOptions"
ng-model="myform.form_fields"
class="dropzone">
<accordion-group data-ng-repeat="field in myform.form_fields track by field._id"
<accordion-group ng-repeat="field in myform.form_fields track by field._id"
is-open="accordion[$index].isOpen"
on-finish-render="editFormFields"
ng-if="!field.deletePreserved">