projectPage

This commit is contained in:
2018-04-13 17:48:11 +02:00
parent dbe736d941
commit 08e51ef303
5 changed files with 103 additions and 105 deletions
+9 -2
View File
@@ -46,6 +46,7 @@ $( function () {
totalForecast : ko.observable(),
documents : ko.observableArray( [] ),
comments : ko.observableArray( [] ),
activeTab : ko.observable(),
init: function () {
var vm = dbo.editProjectModal;
@@ -68,6 +69,12 @@ $( function () {
} );
},
setActiveTab: function ( tab ) {
var vm = dbo.editProjectModal;
vm.activeTab( tab );
},
togglePayments: function () {
this.showPayments( !this.showPayments() );
@@ -487,7 +494,7 @@ $( function () {
if ( !self ) self = this;
if ( !self.external_id ) {
self.invalidReservation(true);
self.invalidReservation( true );
return;
}
@@ -500,7 +507,7 @@ $( function () {
dbo.projectDataService.saveReservation( submitDATA, function ( data ) {
if ( data.success ) {
self.invalidReservation(false);
self.invalidReservation( false );
self.id = data.reservationID;
}
} );