1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

continue jquery removal

This commit is contained in:
Luke Pulverenti 2016-06-20 21:59:39 -04:00
parent e8eb73d742
commit 69ed034ccb
2 changed files with 10 additions and 16 deletions

View file

@ -14,7 +14,7 @@
html += '<br/>';
html += '<button is="emby-button" type="submit" class="raised submit block"><span>' + Globalize.translate('ButtonSave') + '</span></button>';
$('.syncJobForm', page).html(html);
page.querySelector('.syncJobForm').innerHTML = html;
require(['syncDialog'], function (syncDialog) {
syncDialog.renderForm({
@ -99,14 +99,6 @@
return html;
}
$.fn.lazyChildren = function () {
for (var i = 0, length = this.length; i < length; i++) {
ImageLoader.lazyChildren(this[i]);
}
return this;
};
function renderJobItems(page, items) {
var html = '';
@ -124,7 +116,9 @@
html += '</div>';
var elem = $('.jobItems', page).html(html).lazyChildren();
var elem = page.querySelector('.jobItems');
elem.innerHTML = html;
ImageLoader.lazyChildren(elem);
$('.btnJobItemMenu', elem).on('click', function () {
showJobItemMenu(this);