Show:

I am the ViewResources. I render an user interface which allows the user to add, edit and delete all types of resources which are stored on the server.

Methods

changeViewSize

(
  • arrayWidthAndHeight
)

I react to a change in the global state "viewSize"

Parameters:

  • arrayWidthAndHeight Array

create

(
  • withoutDialog
)

I am called during init process. I prepare the DOM element and append it to the div with the id #MainContainer. My parameter indicates, wether I should be shown in a jqueryUI dialog (for embbed use) or wether I am a "fullscreen" element for use in a stand-alone environment.

Parameters:

executeDelete

()

I execute the deletion of all resources selected by the user.

open

(
  • closeCallback
)

I show the DOM element to the user and (optionally) set a callback, when I was opened not as a stand-alone element, but inside a jQuery UI dialog.

Parameters:

toggleDeleteMode

()

I activate or deactivate the delete functionality, according to the module variable deleteActive {Boolean}.

When "delete" is active, the resources' thumbs are selectable for deletion, and a "Confirm deletion" button appears.

updateList

()

I render the list of resource items. I check the radio boxes for the type of resources which shall be shown and call ResourceManager/renderList()).

Returns: