[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [14136]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [14136] |
Date: |
Thu, 08 Oct 2015 00:32:16 +0000 |
Revision: 14136
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14136
Author: nelson224
Date: 2015-10-08 00:32:16 +0000 (Thu, 08 Oct 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/booking/js/booking/season.wtemplate.js
Modified: branches/dev-syncromind/booking/js/booking/season.wtemplate.js
===================================================================
--- branches/dev-syncromind/booking/js/booking/season.wtemplate.js
2015-10-08 00:31:56 UTC (rev 14135)
+++ branches/dev-syncromind/booking/js/booking/season.wtemplate.js
2015-10-08 00:32:16 UTC (rev 14136)
@@ -1,11 +1,45 @@
- this.showAllocationForm = function()
- {
- var oArgs = {menuaction:'booking.uiseason.wtemplate_alloc'};
- var sUrl = phpGWLink('index.php', oArgs);
+saveTemplateAlloc = function(){
+
+ var resources_checks = $('.resources_checks');
+
+ var values = {};
- TINY.box.show({iframe:sUrl,
boxid:'frameless',width:650,height:600,fixed:false,maskid:'darkmask',maskopacity:40,
mask:true, animate:true,
- close: true,
- closejs:false
- });
- };
\ No newline at end of file
+ values['cost'] = $('#cost').val();
+ values['from_'] = $('#from_').val();
+ values['id'] = $('#id').val();
+ values['organization_id'] = $('#organization_id').val();
+ values['to_'] = $('#to_').val();
+ values['wday'] = $('#wday').val();
+ values['season_id'] = parent.season_id;
+
+ resources_checks.each(function(i, obj) {
+ if (obj.checked)
+ {
+ values['resources'][i] = obj.value;
+ }
+ });
+
+ var oArgs = {menuaction:'booking.uiseason.wtemplate_alloc_json'};
+ var requestUrl = phpGWLink('index.php', oArgs, true);
+
+ var data = {"values": values};
+ JqueryPortico.execute_ajax(requestUrl, function(result){
+
+ /*var weekUrl =
'index.php?menuaction=booking.uiseason.wtemplate_json&id=' + season_id +
'&phpgw_return_as=json&';
+
+ var colDefs = [
+ {key: 'time', label: 'Time'},
+ {key: 'resource', label: 'Resources', formatter:
'scheduleResourceColumn'},
+ {key: '1', label: 'Monday', formatter: 'seasonDateColumn'},
+ {key: '2', label: 'Tuesday', formatter: 'seasonDateColumn'},
+ {key: '3', label: 'Wednesday', formatter: 'seasonDateColumn'},
+ {key: '4', label: 'Thursday, formatter: 'seasonDateColumn'},
+ {key: '5', label: 'Friday')', formatter: 'seasonDateColumn'},
+ {key: '6', label: 'Saturday, formatter: 'seasonDateColumn'},
+ {key: '7', label: 'Sunday', formatter: 'seasonDateColumn'}];
+
+ createTableSchedule('schedule_container', weekUrl, colDefs, r,
'pure-table' );*/
+
+ }, data, "POST", "JSON");
+};
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [14136],
Nelson Guerra <=