Commit 0686f254 authored by ZeMKI's avatar ZeMKI

Update index.blade.php

Optimized translation dashboard.
parent f4c8a169
......@@ -582,10 +582,12 @@
}
});
$('.editable').editable().on('hidden', function (e, reason) {
var locale = $(this).data('locale');
if (reason === 'save') {
$(this).removeClass('status-0').addClass('status-1');
$(this).removeClass("editable-empty").removeClass("bg-red-400").removeClass("text-white");
}
if (reason === 'save' || reason === 'nochange') {
var $next = $(this).closest('tr').next().find('.editable.locale-' + locale);
......@@ -635,6 +637,8 @@
$('.form-publish-all').on('ajax:success', function (e, data) {
$('div.success-publish-all').slideDown();
});
$('.editable-empty').addClass("bg-red-400");
$('.editable-empty').addClass("text-white");
})
</script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment