mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 17:58:41 +00:00
bump
This commit is contained in:
parent
c275eea102
commit
1cfa17935b
|
|
@ -278,7 +278,7 @@ export class EventManager
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is a certain group allready attached
|
* Is a certain group already attached
|
||||||
*
|
*
|
||||||
* @param {string|number} group Group id
|
* @param {string|number} group Group id
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// bind canvas
|
// bind canvas
|
||||||
// take images every x ms
|
// take images every x ms
|
||||||
// call calback on canvas to check image
|
// call callback on canvas to check image
|
||||||
// stop if match or manual stop
|
// stop if match or manual stop
|
||||||
// return callback result
|
// return callback result
|
||||||
|
|
|
||||||
|
|
@ -323,7 +323,7 @@ export class AdvancedInput
|
||||||
/**
|
/**
|
||||||
* @todo Karaka/jsOMS#72
|
* @todo Karaka/jsOMS#72
|
||||||
* Allow duplication
|
* Allow duplication
|
||||||
* Create a `data-duplicat=true` attribute to allow duplication and then have a count as part of the uuid (maybe row id).
|
* Create a `data-duplicate=true` attribute to allow duplication and then have a count as part of the uuid (maybe row id).
|
||||||
*/
|
*/
|
||||||
if (self.tagElement.querySelectorAll('[data-tpl-uuid="' + uuid + '"').length !== 0) {
|
if (self.tagElement.querySelectorAll('[data-tpl-uuid="' + uuid + '"').length !== 0) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -285,7 +285,7 @@ export class AdvancedSelect
|
||||||
/**
|
/**
|
||||||
* @todo Karaka/jsOMS#72
|
* @todo Karaka/jsOMS#72
|
||||||
* Allow duplication
|
* Allow duplication
|
||||||
* Create a `data-duplicat=true` attribute to allow duplication and then have a count as part of the uuid (maybe row id).
|
* Create a `data-duplicate=true` attribute to allow duplication and then have a count as part of the uuid (maybe row id).
|
||||||
*/
|
*/
|
||||||
if (self.tagElement.querySelectorAll('[data-tpl-uuid="' + uuid + '"').length !== 0) {
|
if (self.tagElement.querySelectorAll('[data-tpl-uuid="' + uuid + '"').length !== 0) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -664,13 +664,13 @@ export class Form
|
||||||
|
|
||||||
for (let i = 0; i < updateElementLength; ++i) {
|
for (let i = 0; i < updateElementLength; ++i) {
|
||||||
jsOMS.removeClass(updateElements[i], 'animated');
|
jsOMS.removeClass(updateElements[i], 'animated');
|
||||||
jsOMS.removeClass(updateElements[i], 'greenCricleFade');
|
jsOMS.removeClass(updateElements[i], 'greenCircleFade');
|
||||||
|
|
||||||
requestAnimationFrame((time) => {
|
requestAnimationFrame((time) => {
|
||||||
requestAnimationFrame((time) => {
|
requestAnimationFrame((time) => {
|
||||||
jsOMS.addClass(updateElements[i], 'animated');
|
jsOMS.addClass(updateElements[i], 'animated');
|
||||||
jsOMS.addClass(updateElements[i], 'medium-duration');
|
jsOMS.addClass(updateElements[i], 'medium-duration');
|
||||||
jsOMS.addClass(updateElements[i], 'greenCricleFade');
|
jsOMS.addClass(updateElements[i], 'greenCircleFade');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -1017,7 +1017,7 @@ export class Form
|
||||||
// @todo if table head input field in popups changes -> check if input empty -> deactivate -> checkbox : else activate checkbox
|
// @todo if table head input field in popups changes -> check if input empty -> deactivate -> checkbox : else activate checkbox
|
||||||
// careful: the same checkbox is used for showing the filter popup. maybe create a separate checkbox, which only handles the highlighting if filter is defined.
|
// careful: the same checkbox is used for showing the filter popup. maybe create a separate checkbox, which only handles the highlighting if filter is defined.
|
||||||
// this means popup active highlights filter icon AND different content checkbox also highlights filter
|
// this means popup active highlights filter icon AND different content checkbox also highlights filter
|
||||||
// -> two hiddin checkboxes are necessary (one is already implemented)
|
// -> two hidden checkboxes are necessary (one is already implemented)
|
||||||
// Consider: It might make sense to do this in the Table.js??? Kinda depends on additional functionality together with the form probably.
|
// Consider: It might make sense to do this in the Table.js??? Kinda depends on additional functionality together with the form probably.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1211,7 +1211,7 @@ export class Form
|
||||||
document.close();
|
document.close();
|
||||||
*/
|
*/
|
||||||
|
|
||||||
window.omsApp.reInit(); // @todo fix memory leak which most likely exists because of continous binding without removing binds
|
window.omsApp.reInit(); // @todo fix memory leak which most likely exists because of continuous binding without removing binds
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
const o = JSON.parse(xhr.response)[0];
|
const o = JSON.parse(xhr.response)[0];
|
||||||
|
|
@ -1239,7 +1239,7 @@ export class Form
|
||||||
document.write(html);
|
document.write(html);
|
||||||
document.close();
|
document.close();
|
||||||
*/
|
*/
|
||||||
// @todo fix memory leak which most likely exists because of continous binding without removing binds
|
// @todo fix memory leak which most likely exists because of continuous binding without removing binds
|
||||||
window.omsApp.reInit();
|
window.omsApp.reInit();
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ export class MouseManager
|
||||||
run (element, event)
|
run (element, event)
|
||||||
{
|
{
|
||||||
if (typeof this.elements[element] === 'undefined') {
|
if (typeof this.elements[element] === 'undefined') {
|
||||||
throw new Error('Unexpected elmenet!');
|
throw new Error('Unexpected element!');
|
||||||
}
|
}
|
||||||
|
|
||||||
const actions = this.elements[element];
|
const actions = this.elements[element];
|
||||||
|
|
|
||||||
|
|
@ -4998,24 +4998,24 @@
|
||||||
i, ii;
|
i, ii;
|
||||||
for (i = 0; i < headings.length; ++i) {
|
for (i = 0; i < headings.length; ++i) {
|
||||||
var headContent = showdown.subParser('makeMarkdown.tableCell')(headings[i], globals),
|
var headContent = showdown.subParser('makeMarkdown.tableCell')(headings[i], globals),
|
||||||
allign = '---';
|
align = '---';
|
||||||
|
|
||||||
if (headings[i].hasAttribute('style')) {
|
if (headings[i].hasAttribute('style')) {
|
||||||
var style = headings[i].getAttribute('style').toLowerCase().replace(/\s/g, '');
|
var style = headings[i].getAttribute('style').toLowerCase().replace(/\s/g, '');
|
||||||
switch (style) {
|
switch (style) {
|
||||||
case 'text-align:left;':
|
case 'text-align:left;':
|
||||||
allign = ':---';
|
align = ':---';
|
||||||
break;
|
break;
|
||||||
case 'text-align:right;':
|
case 'text-align:right;':
|
||||||
allign = '---:';
|
align = '---:';
|
||||||
break;
|
break;
|
||||||
case 'text-align:center;':
|
case 'text-align:center;':
|
||||||
allign = ':---:';
|
align = ':---:';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tableArray[0][i] = headContent.trim();
|
tableArray[0][i] = headContent.trim();
|
||||||
tableArray[1][i] = allign;
|
tableArray[1][i] = align;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < rows.length; ++i) {
|
for (i = 0; i < rows.length; ++i) {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ describe('FormViewTest', function ()
|
||||||
<input type="hidden" id="testHiddenInputText" name="testHiddenInputTextName" value="hidden input text">
|
<input type="hidden" id="testHiddenInputText" name="testHiddenInputTextName" value="hidden input text">
|
||||||
<textarea id="testTextarea" name="testTextareaName" value="textarea text"></textarea>
|
<textarea id="testTextarea" name="testTextareaName" value="textarea text"></textarea>
|
||||||
<input type="submit" id="defaultSubmit">
|
<input type="submit" id="defaultSubmit">
|
||||||
<button type="submit" id="buttenSubmit">
|
<button type="submit" id="buttonSubmit">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<input form="${testId}" id="externalInputText" name="externalInputTextName" value="external text">
|
<input form="${testId}" id="externalInputText" name="externalInputTextName" value="external text">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user