[open-ils-commits] r13345 - trunk/Open-ILS/web/js/ui/default/conify/global/action/survey (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jun 9 11:31:24 EDT 2009


Author: erickson
Date: 2009-06-09 11:31:22 -0400 (Tue, 09 Jun 2009)
New Revision: 13345

Modified:
   trunk/Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js
Log:

Patch from Laura McFarland (who's previous gajillion patches went woefully unattributed) to tidy up and fix some bugs in the new survey editor UI.



Modified: trunk/Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js	2009-06-08 15:24:24 UTC (rev 13344)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/action/survey/edit.js	2009-06-09 15:31:22 UTC (rev 13345)
@@ -9,7 +9,6 @@
 dojo.require('fieldmapper.OrgUtils');
 dojo.require('openils.widget.OrgUnitFilteringSelect');
 dojo.require('openils.PermaCrud');
-dojo.require('openils.DojoPatch');
 dojo.require('openils.widget.GridColumnPicker');
 dojo.require('openils.widget.EditPane');
 dojo.requireLocalization('openils.conify', 'conify');
@@ -25,19 +24,22 @@
     var surveyTable = dojo.byId('edit-pane');
     var surveyHead = dojo.create('thead', {id: "survey_head"},  surveyTable);
     var headRow = dojo.create('tr', null,  surveyHead);
-    var headCell = dojo.create('td', {id: "head_cell", innerHTML: "<h3>" +dojo.string.substitute(localeStrings.SURVEY_ID, [svyId])+"</h3>" }, headRow);
+    var headCell = dojo.create('td', {id: "head_cell", innerHTML: "<h2>" +dojo.string.substitute(localeStrings.SURVEY_ID, [svyId])+"</h2>" }, headRow);
     var pcrud = new openils.PermaCrud();
     var survey = pcrud.retrieve('asv', svyId);
     startDate = dojo.date.stamp.fromISOString(survey.start_date());
     endDate = dojo.date.stamp.fromISOString(survey.end_date());
     var pane = new openils.widget.EditPane({fmObject : survey, hideActionButtons:false}, dojo.byId('edit-pane'));
+
     if ( endDate > today) {
-        var buttonBody = dojo.create( 'td', null, headRow);
+        var buttonBody = dojo.create( 'td', null, surveyHead);
         var endButton = new dijit.form.Button({label: localeStrings.END_SURVEY, onClick:function() {endSurvey(survey.id())} }, buttonBody);
     }   
+
     pane.fieldOrder = ['id', 'name', 'description', 'owner', 'start_date', 'end_date'];
     pane.onCancel = cancelEdit;
     pane.startup();
+
     var surveyFoot = dojo.create('tfoot', { id: "survey_foot"}, surveyTable);
     var footRow = dojo.create('tr', {id: "foot_row"}, surveyFoot);  
     var footLabel = dojo.create('td', {id: "foot_label", innerHTML: "<h3>"+localeStrings.SURVEY_FOOT_LABEL+"</h3>"}, footRow);



More information about the open-ils-commits mailing list