Compare commits

...

3 Commits

Author SHA1 Message Date
ostertun
326ba4a6bd Merge branch 'hotfix/fix_inputs_forcesync' 2020-10-15 14:04:06 +02:00
ostertun
a38c48dab4 hotfix v_1.10.5h1 2020-10-15 14:03:55 +02:00
ostertun
da48e79a36 gitflow-hotfix-stash: fix_inputs_forcesync 2020-10-15 14:03:17 +02:00
4 changed files with 30 additions and 5 deletions

View File

@@ -346,6 +346,31 @@ eraseCookie('sticky_dark_mode');
}
})
log('[tpl] Init inputs');
$('.input-required input, .input-required select, .input-required textarea').on('focusin keyup',function(){
var spanValue = $(this).parent().find('span').text();
if($(this).val() != spanValue && $(this).val() != ""){
$(this).parent().find('span').addClass('input-style-1-active').removeClass('input-style-1-inactive');
}
if($(this).val() === ""){
$(this).parent().find('span').removeClass('input-style-1-inactive input-style-1-active');
}
});
$('.input-required input, .input-required select, .input-required textarea').on('focusout',function(){
var spanValue = $(this).parent().find('span').text();
if($(this).val() === ""){
$(this).parent().find('span').removeClass('input-style-1-inactive input-style-1-active');
}
$(this).parent().find('span').addClass('input-style-1-inactive')
});
$('.input-required select').on('focusout',function(){
var getValue = $(this)[0].value;
if(getValue === "default"){
$(this).parent().find('span').removeClass('input-style-1-inactive input-style-1-active');
}
});
log('[tpl] init a2h');
//Adding added-to-homescreen class to be targeted when used as PWA.

View File

@@ -965,10 +965,10 @@ function initDatabase() {
db.transaction('update_times').objectStore('update_times').get('last_sync').onsuccess = function (event) {
var lastSync = event.target.result.time;
if (lastSync > 0) {
if (lastSync > 1) {
runPageScript();
} else {
addSyncInfoToPreloader();
if (lastSync < 1) addSyncInfoToPreloader();
db.transaction('update_times', 'readwrite').objectStore('update_times').put({ table: 'loggedin', status: isLoggedIn() });
loaderCount --;
}

View File

@@ -1,4 +1,4 @@
<nav id="$$html-id;">
<nav id="$$html-id;" class="$$css-class;">
<ul class="pagination justify-content-center">
<li id="$$html-id;-1" class="page-item"><a onclick="onPaginationClick(this)" class="page-link color-black bg-theme rounded-xs shadow-x1 border-0" style="cursor: pointer;">1</a></li>
<li id="$$html-id;-2" class="page-item"><a onclick="onPaginationClick(this)" class="page-link color-black bg-theme rounded-xs shadow-x1 border-0" style="cursor: pointer;">2</a></li>

View File

@@ -1,5 +1,5 @@
<?php
define('PWA_VERSION', '1.10.5');
define('PWA_VERSION', '1.10.5h1');
?>