File tree Expand file tree Collapse file tree 5 files changed +17
-9
lines changed Expand file tree Collapse file tree 5 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ All Notable changes to `Backpack CRUD` will be documented in this file
2020- Nothing
2121
2222
23+ ## [ 3.1.26] - 2016-09-30
24+
25+ ### Fixed
26+ - bug fix for 'table' field type - you can now have multiple fields on the same form;
27+
28+
2329## [ 3.1.25] - 2016-09-28
2430
2531### Fixed
Original file line number Diff line number Diff line change 1414@endsection
1515
1616@section (' content' )
17- <div class =" row" >
17+ <div class =" row" ng-app = " backPack " >
1818 <div class =" col-md-8 col-md-offset-2" >
1919 <!-- Default box -->
2020 @if ($crud -> hasAccess (' list' ) )
Original file line number Diff line number Diff line change 1414@endsection
1515
1616@section (' content' )
17- <div class =" row" >
17+ <div class =" row" ng-app = " backPack " >
1818 <div class =" col-md-8 col-md-offset-2" >
1919 <!-- Default box -->
2020 @if ($crud -> hasAccess (' list' ) )
Original file line number Diff line number Diff line change 2222 }
2323
2424? >
25- <div ng-app = " backpackTable " ng- controller =" tableController" @include (' crud::inc.field_wrapper_attributes' ) >
25+ <div ng-controller =" tableController" @include (' crud::inc.field_wrapper_attributes' ) >
2626
2727 <label >{!! $field [' label' ] ! !} </label >
2828
6666
6767 </table >
6868
69- <div class =" array-controls btn-group" >
69+ <div class =" array-controls btn-group m-t-10 " >
7070 <button class =" btn btn-sm btn-default" type =" button" ng-click =" addItem()" ><i class =" fa fa-plus" ></i > Add {{ $item_name } } </button >
7171 </div >
7272
9696 <script type =" text/javascript" src =" https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js" ></script >
9797 <script type =" text/javascript" src =" https://cdnjs.cloudflare.com/ajax/libs/angular-ui-sortable/0.14.3/sortable.min.js" ></script >
9898 <script >
99- angular .module (' backpackTable' , [' ui.sortable' ], function ($interpolateProvider ){
99+
100+ window .angularApp = window .angularApp || angular .module (' backPack' , [' ui.sortable' ], function ($interpolateProvider ){
100101 $interpolateProvider .startSymbol (' <%' );
101102 $interpolateProvider .endSymbol (' %>' );
102- })
103- .controller (' tableController' , function ($scope ){
103+ });
104+
105+ window .angularApp .controller (' tableController' , function ($scope ){
104106
105107 $scope .sortableOptions = {
106108 handle: ' .sort-handle'
Original file line number Diff line number Diff line change @@ -286,15 +286,15 @@ function register_details_row_button_action() {
286286
287287 if ( row .child .isShown () ) {
288288 // This row is already open - close it
289- $ (this ).children ( ' i ' ). removeClass (' fa-minus-square-o' ).addClass (' fa-plus-square-o' );
289+ $ (this ).removeClass (' fa-minus-square-o' ).addClass (' fa-plus-square-o' );
290290 $ (' div.table_row_slider' , row .child ()).slideUp ( function () {
291291 row .child .hide ();
292292 tr .removeClass (' shown' );
293293 } );
294294 }
295295 else {
296296 // Open this row
297- $ (this ).children ( ' i ' ). removeClass (' fa-plus-square-o' ).addClass (' fa-minus-square-o' );
297+ $ (this ).removeClass (' fa-plus-square-o' ).addClass (' fa-minus-square-o' );
298298 // Get the details with ajax
299299 $ .ajax ({
300300 url: ' {{ Request:: url () } } /' + btn .data (' entry-id' )+ ' /details' ,
You can’t perform that action at this time.
0 commit comments