[ 
https://issues.apache.org/jira/browse/VCL-776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14146487#comment-14146487
 ] 

ASF subversion and git services commented on VCL-776:
-----------------------------------------------------

Commit 1627362 from [~jfthomps] in branch 'vcl/trunk'
[ https://svn.apache.org/r1627362 ]

VCL-776 - rework resource code to have a base class for all resources and 
inheriting classes for each resource type

added functionality to track which fields for a resource a users has selected 
to be displayed; stored in browser cookie

resource.php:
-modified viewResources: added check for $_COOKIE[type . selfields] that tracks 
which fields have been selected to be displayed; also pass array generated from 
that to addDisplayCheckboxes
-modified addDisplayCheckboxes: determine if checkbox should be checked or not 
based on content of $selfields

resources.js:
-added this.restype to class definition
-modified toggleResFieldDisplay - added call to this.updateFieldCookie
-added updateFieldCookie - tracks selected fields in a cookie

schedule.js: added definition for Schedule class so that we can set 
this.restype to 'schedule'

managementnode.js: added this.restype to class definition

config.js: added definition for config class

image.js: added this.restype to class definition

computer.js:
-added this.restype to class definition
-modified toggleResFieldDisplay - added call to this.updateFieldCookie

vcl.css: changed widths for computerdlgcontent label and .labeledform

utils.php:
-modified abort: added calls to error_log so that errors will also be logged to 
the php error log; makes it easier for people to debug errors that are sent 
back to a browser but not displayed
-modified getDojoHTML: added dojo.cookie to requires for viewResources

> rework resource code to have a base class for all resources and inheriting 
> classes for each resource type
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: VCL-776
>                 URL: https://issues.apache.org/jira/browse/VCL-776
>             Project: VCL
>          Issue Type: Improvement
>          Components: web gui (frontend)
>            Reporter: Josh Thompson
>             Fix For: 2.4
>
>
> Rework the code for resources so that there is a base class that provides 
> common functionality for all resources and then write classes that inherit 
> from that to provide resource specific functionality.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to