projectPage
This commit is contained in:
@@ -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;
|
||||
}
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user