Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
ac5e87e5
Commit
ac5e87e5
authored
May 18, 2016
by
Carsten Rose
Browse files
Merge remote-tracking branch 'origin/raos_work' into crose_work
parents
71d80a99
c2c674c3
Changes
36
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
ac5e87e5
/.plantuml_install
/doc/*.pdf
/.doc_plantuml
/.support
...
...
Gruntfile.js
View file @
ac5e87e5
...
...
@@ -174,7 +174,8 @@ module.exports = function (grunt) {
{
cwd
:
'
bower_components/jqwidgets/jqwidgets/
'
,
src
:
[
'
jqx-all.js
'
'
jqx-all.js
'
,
'
globalization/globalize.js
'
],
expand
:
true
,
dest
:
typo3_js
,
...
...
@@ -205,7 +206,8 @@ module.exports = function (grunt) {
{
cwd
:
'
bower_components/jqwidgets/jqwidgets/
'
,
src
:
[
'
jqx-all.js
'
'
jqx-all.js
'
,
'
globalization/globalize.js
'
],
expand
:
true
,
dest
:
'
js/
'
,
...
...
javascript/src/Alert.js
View file @
ac5e87e5
...
...
@@ -6,6 +6,11 @@
/* global EventEmitter */
/* @depend QfqEvents.js */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
(
function
(
n
)
{
...
...
javascript/src/BSTabs.js
View file @
ac5e87e5
...
...
@@ -8,6 +8,11 @@
/* @depend QfqEvents.js */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
...
...
@@ -20,6 +25,8 @@ var QfqNS = QfqNS || {};
*
* @param {string} tabId HTML id of the element having `nav` and `nav-tabs` classes
* @constructor
*
* @name QfqNS.BSTabs
*/
n
.
BSTabs
=
function
(
tabId
)
{
this
.
tabId
=
tabId
;
...
...
javascript/src/Element/Checkbox.js
View file @
ac5e87e5
...
...
@@ -4,7 +4,17 @@
/* @depend FormGroup.js */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
/**
* Qfq.Element Namespace
*
* @namespace QfqNS.Element
*/
QfqNS
.
Element
=
QfqNS
.
Element
||
{};
(
function
(
n
)
{
...
...
@@ -15,6 +25,7 @@ QfqNS.Element = QfqNS.Element || {};
*
* @param $element
* @constructor
* @name QfqNS.Element.Checkbox
*/
function
Checkbox
(
$element
)
{
n
.
FormGroup
.
call
(
this
,
$element
);
...
...
javascript/src/Element/FormGroup.js
View file @
ac5e87e5
...
...
@@ -2,7 +2,17 @@
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
/**
* Qfq.Element Namespace
*
* @namespace QfqNS.Element
*/
QfqNS
.
Element
=
QfqNS
.
Element
||
{};
(
function
(
n
)
{
...
...
@@ -18,6 +28,7 @@ QfqNS.Element = QfqNS.Element || {};
*
*
* @constructor
* @name QfqNS.Element.FormGroup
*/
n
.
FormGroup
=
function
(
$enclosedElement
)
{
if
(
!
$enclosedElement
||
$enclosedElement
.
length
===
0
)
{
...
...
@@ -30,6 +41,13 @@ QfqNS.Element = QfqNS.Element || {};
this
.
$helpBlock
=
this
.
$formGroup
.
find
(
"
.help-block
"
);
};
/**
* Test if the Form Group is of the given type
*
* @param {string} type type name
* @returns {boolean} true if the Form Group is of the given type. False otherwise
* @protected
*/
n
.
FormGroup
.
prototype
.
isType
=
function
(
type
)
{
var
lowerCaseType
=
type
.
toLowerCase
();
var
isOfType
=
true
;
...
...
@@ -140,15 +158,4 @@ QfqNS.Element = QfqNS.Element || {};
this
.
$element
.
prop
(
'
required
'
,
required
);
};
/**
* Read Only click handler.
*
* Since the readonly attribute does not work as expected on certain input types, emulate read only
*/
n
.
FormGroup
.
prototype
.
readOnlyHandler
=
function
()
{
return
false
;
};
})(
QfqNS
.
Element
);
\ No newline at end of file
javascript/src/Element/NameSpaceFunctions.js
View file @
ac5e87e5
...
...
@@ -4,12 +4,28 @@
/* global $ */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
/**
* Qfq.Element Namespace
*
* @namespace QfqNS.Element
*/
QfqNS
.
Element
=
QfqNS
.
Element
||
{};
(
function
(
n
)
{
'
use strict
'
;
/**
*
* @param name
* @returns {*}
* @function QfqNS.Element.getElement
*/
n
.
getElement
=
function
(
name
)
{
var
$element
=
$
(
'
[name="
'
+
name
+
'
"]:not([type="hidden"])
'
);
if
(
$element
.
length
===
0
)
{
...
...
javascript/src/Element/Radio.js
View file @
ac5e87e5
...
...
@@ -2,7 +2,17 @@
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
/**
* Qfq.Element Namespace
*
* @namespace QfqNS.Element
*/
QfqNS
.
Element
=
QfqNS
.
Element
||
{};
(
function
(
n
)
{
...
...
@@ -13,6 +23,7 @@ QfqNS.Element = QfqNS.Element || {};
*
* @param $element
* @constructor
* @name QfqNS.Element.Radio
*/
function
Radio
(
$element
)
{
n
.
FormGroup
.
call
(
this
,
$element
);
...
...
javascript/src/Element/Select.js
View file @
ac5e87e5
...
...
@@ -3,7 +3,17 @@
*/
/* global $ */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
/**
* Qfq.Element Namespace
*
* @namespace QfqNS.Element
*/
QfqNS
.
Element
=
QfqNS
.
Element
||
{};
(
function
(
n
)
{
...
...
@@ -14,6 +24,7 @@ QfqNS.Element = QfqNS.Element || {};
*
* @param $element
* @constructor
* @name QfqNS.Element.Select
*/
function
Select
(
$element
)
{
n
.
FormGroup
.
call
(
this
,
$element
);
...
...
javascript/src/Element/Textual.js
View file @
ac5e87e5
...
...
@@ -2,7 +2,17 @@
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
/**
* Qfq.Element Namespace
*
* @namespace QfqNS.Element
*/
QfqNS
.
Element
=
QfqNS
.
Element
||
{};
(
function
(
n
)
{
...
...
@@ -13,6 +23,7 @@ QfqNS.Element = QfqNS.Element || {};
*
* @param $element
* @constructor
* @name QfqNS.Element.Textual
*/
function
Textual
(
$element
)
{
n
.
FormGroup
.
call
(
this
,
$element
);
...
...
javascript/src/Element/data.js
View file @
ac5e87e5
...
...
@@ -2,7 +2,17 @@
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
/**
* Qfq.Element Namespace
*
* @namespace QfqNS.Element
*/
QfqNS
.
Element
=
QfqNS
.
Element
||
{};
(
function
(
n
)
{
...
...
javascript/src/FileDelete.js
View file @
ac5e87e5
...
...
@@ -6,11 +6,24 @@
/* @depend QfqEvents.js */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
(
function
(
n
)
{
'
use strict
'
;
/**
*
* @param formSelector
* @param targetUrl
* @constructor
*
* @name QfqNS.FileDelete
*/
n
.
FileDelete
=
function
(
formSelector
,
targetUrl
)
{
this
.
formSelector
=
formSelector
;
this
.
targetUrl
=
targetUrl
;
...
...
javascript/src/FileUpload.js
View file @
ac5e87e5
...
...
@@ -7,12 +7,23 @@
/* @depend QfqEvents.js */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
(
function
(
n
)
{
'
use strict
'
;
/**
*
* @param formSelector
* @param targetUrl
* @constructor
* @name QfqNS.FileUpload
*/
n
.
FileUpload
=
function
(
formSelector
,
targetUrl
)
{
this
.
formSelector
=
formSelector
;
this
.
targetUrl
=
targetUrl
;
...
...
javascript/src/Form.js
View file @
ac5e87e5
...
...
@@ -6,11 +6,22 @@
/* global EventEmitter */
/* @depend QfqEvents.js */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
(
function
(
n
)
{
'
use strict
'
;
/**
*
* @param formId
* @constructor
* @name QfqNS.Form
*/
n
.
Form
=
function
(
formId
)
{
this
.
formId
=
formId
;
this
.
eventEmitter
=
new
EventEmitter
();
...
...
javascript/src/Helper/NameSpaceFunctions.js
View file @
ac5e87e5
...
...
@@ -4,18 +4,43 @@
/* global $ */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
/**
* Qfq Helper Namespace
*
* @namespace QfqNS.Helper
*/
QfqNS
.
Helper
=
QfqNS
.
Helper
||
{};
(
function
(
n
)
{
'
use strict
'
;
/**
*
* @param jqHXR
* @param textStatus
* @param errorThrown
*
* @function QfqNS.Helper.showAjaxError
*/
n
.
showAjaxError
=
function
(
jqHXR
,
textStatus
,
errorThrown
)
{
var
alert
=
new
QfqNS
.
Alert
(
"
Error:<br>
"
+
errorThrown
,
"
error
"
);
alert
.
show
();
};
/**
*
* @param string
* @returns {*}
*
* @function QfqNS.Helper.stringBool
*/
n
.
stringToBool
=
function
(
string
)
{
if
(
typeof
string
!==
"
string
"
)
{
return
string
;
...
...
javascript/src/Helper/jqxComboBox.js
View file @
ac5e87e5
...
...
@@ -21,6 +21,11 @@ QfqNS.Helper = QfqNS.Helper || {};
(
function
(
n
)
{
'
use strict
'
;
/**
*
* @function
* @name QfqNS.Helper.jqxComboBox
*/
var
jqxComboBox
=
function
()
{
var
index
;
var
$containers
=
$
(
"
div.jqw-combobox
"
);
...
...
@@ -45,6 +50,9 @@ QfqNS.Helper = QfqNS.Helper || {};
$container
.
jqxComboBox
({
source
:
source
});
// Our code creates a hidden input element for each jqxwidget as sibling of the widget. We do this,
// because jqxwidget don't create named input elements, and thus the value would not be sent to the
// server using a Plain Old Form submission (even if performed by an ajax request).
var
$hiddenInput
=
$
(
"
<input>
"
)
.
attr
(
'
type
'
,
'
hidden
'
)
.
attr
(
'
name
'
,
controlName
);
...
...
javascript/src/Helper/jqxDateTimeInput.js
View file @
ac5e87e5
...
...
@@ -83,6 +83,9 @@ QfqNS.Helper = QfqNS.Helper || {};
$container
.
jqxDateTimeInput
(
jqxDateTimeInputConfig
);
// Our code creates a hidden input element for each jqxwidget as sibling of the widget. We do this,
// because jqxwidget don't create named input elements, and thus the value would not be sent to the
// server using a Plain Old Form submission (even if performed by an ajax request).
var
$hiddenInput
=
$
(
"
<input>
"
)
.
attr
(
'
type
'
,
'
hidden
'
)
.
attr
(
'
name
'
,
controlName
);
...
...
javascript/src/Log.js
View file @
ac5e87e5
...
...
@@ -4,10 +4,22 @@
/* global console */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
(
function
(
n
)
{
'
use strict
'
;
/**
*
* @type {{level: number, message: Function, debug: Function, warning: Function, error: Function}}
*
* @name QfqNS.Log
*/
n
.
Log
=
{
level
:
3
,
message
:
function
(
msg
)
{
...
...
javascript/src/PageState.js
View file @
ac5e87e5
...
...
@@ -5,12 +5,22 @@
/* @depend QfqEvents.js */
/* global EventEmitter */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
(
function
(
n
)
{
'
use strict
'
;
/**
*
* @constructor
* @name QfqNS.PageState
*/
n
.
PageState
=
function
()
{
this
.
pageState
=
location
.
hash
.
slice
(
1
);
this
.
data
=
null
;
...
...
javascript/src/PageTitle.js
View file @
ac5e87e5
...
...
@@ -2,11 +2,22 @@
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
(
function
(
n
)
{
'
use strict
'
;
/**
*
* @type {{set: Function, get: Function, setSubTitle: Function}}
*
* @name QfqNS.PageTitle
*/
n
.
PageTitle
=
{
set
:
function
(
title
)
{
document
.
title
=
title
;
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment