X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci2%2Fui.git;a=blobdiff_plain;f=luci2%2Fhtdocs%2Fluci2%2Fview%2Fsystem.admin.js;h=c10cb3cc1024592b16bdca405f4abc5340ad43af;hp=55826882894c90781768f15ed7a47c19389b42f1;hb=7b9f16e917fc75f2b27b11bbf382246bf38873bf;hpb=bf566304f279d7ea2a2e8ba9a4ef519ef9b75ba1 diff --git a/luci2/htdocs/luci2/view/system.admin.js b/luci2/htdocs/luci2/view/system.admin.js index 5582688..c10cb3c 100644 --- a/luci2/htdocs/luci2/view/system.admin.js +++ b/luci2/htdocs/luci2/view/system.admin.js @@ -126,14 +126,14 @@ L.ui.view.extend({ .append($('

') .text(L.tr('Paste the public key line into the field below and press "%s" to continue.').format(L.tr('Ok')))) .append($('

') + .text(L.tr('Unrecognized public key! Please add only RSA or DSA keys.')) + .addClass('alert alert-danger') + .hide()) + .append($('

') .append($('') .attr('type', 'text') .attr('placeholder', L.tr('Paste key here')) - .css('width', '100%'))) - .append($('

') - .text(L.tr('Unrecognized public key! Please add only RSA or DSA keys.')) - .addClass('alert-message') - .hide()); + .addClass('form-control'))); L.ui.dialog(L.tr('Add new public key'), form, { style: 'confirm', @@ -148,7 +148,7 @@ L.ui.view.extend({ if (!key) { form.find('input').val(''); - form.find('.alert-message').show(); + form.find('.alert').show(); return; } @@ -183,29 +183,28 @@ L.ui.view.extend({ continue; $('

') - .addClass('cbi-input-dynlist') + .addClass('input-group') .append($('') + .addClass('form-control') .attr('type', 'text') .prop('readonly', true) .click({ self: this, index: i }, this._show) .val('%dBit %s - %s'.format(k.bits, k.type, k.comment || '?'))) - .append($('') - .attr('src', L.globals.resource + '/icons/cbi/remove.gif') - .attr('title', L.tr('Remove public key')) - .click({ self: this, div: div, index: i }, this._remove) - .addClass('cbi-button')) + .append($('') + .addClass('input-group-btn') + .append($('