Commit 0a1109c7 authored by Evren Kutar's avatar Evren Kutar

table tag fixes

parent b3b8e2bc
<div class=""> <div class="col-lg-4">
<div class="panel panel-info"> <div class="panel panel-info">
<div class="panel-heading"> <div class="panel-heading">
{{msgbox.title}} {{msgbox.title}}
......
...@@ -61,8 +61,6 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c ...@@ -61,8 +61,6 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c
} }
}); });
debugger;
angular.forEach(scope.schema.properties, function (v, k) { angular.forEach(scope.schema.properties, function (v, k) {
// generically change _id fields model value // generically change _id fields model value
...@@ -340,7 +338,7 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c ...@@ -340,7 +338,7 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c
var data = { var data = {
"form": $scope.model, "form": $scope.model,
"cmd": $scope.form_params.cmd, "cmd": $scope.form_params.cmd,
"subcmd": "do_list", //"subcmd": "do_list",
"model": $scope.form_params.model, "model": $scope.form_params.model,
"token": $scope.token "token": $scope.token
}; };
...@@ -350,8 +348,6 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c ...@@ -350,8 +348,6 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c
//data.form = get_diff; //data.form = get_diff;
} }
//debugger;
return $http.post(generator.makeUrl($scope), data) return $http.post(generator.makeUrl($scope), data)
.success(function (data) { .success(function (data) {
// if return data consists forms key then trigger redraw the form with updated data // if return data consists forms key then trigger redraw the form with updated data
...@@ -372,7 +368,6 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c ...@@ -372,7 +368,6 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c
if (data.msgbox) { if (data.msgbox) {
$scope.msgbox = data.msgbox; $scope.msgbox = data.msgbox;
var newElement = $compile( "<msgbox ></msgbox>" )( $scope ); var newElement = $compile( "<msgbox ></msgbox>" )( $scope );
//debugger;
angular.element(document.querySelector('.main.ng-scope')).children().remove(); angular.element(document.querySelector('.main.ng-scope')).children().remove();
angular.element(document.querySelector('.main.ng-scope')).append( newElement ); angular.element(document.querySelector('.main.ng-scope')).append( newElement );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment