From adf4d0511fa926c79614e04b5e95a82dfffe8410 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 28 Apr 2013 16:40:20 +0200 Subject: [PATCH] Small optimizations --- wcfsetup/install/files/js/WCF.js | 4 ++-- wcfsetup/install/files/style/form.less | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index e33392436b..df80ccbc49 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -5630,7 +5630,7 @@ WCF.System.PageNavigation = { var $fieldset = $('
' + WCF.Language.get('wcf.global.page.jumpTo') + '
').appendTo(this._dialog); $('
').appendTo($fieldset); - this._pageNo = $('').keyup($.proxy(this._keyUp, this)).appendTo($fieldset.find('dd')); + this._pageNo = $('').keyup($.proxy(this._keyUp, this)).appendTo($fieldset.find('dd')); this._description = $('').insertAfter(this._pageNo); var $formSubmit = $('
').appendTo(this._dialog); this._button = $('').click($.proxy(this._submit, this)).appendTo($formSubmit); @@ -5638,7 +5638,7 @@ WCF.System.PageNavigation = { this._button.enable(); this._description.html(WCF.Language.get('wcf.global.page.jumpTo.description').replace(/#pages#/, this._elements[this._elementID].data('pages'))); - this._pageNo.val('1').attr('max', this._elements[this._elementID].data('pages')); + this._pageNo.val(this._elements[this._elementID].data('pages')).attr('max', this._elements[this._elementID].data('pages')); this._dialog.wcfDialog({ 'title': WCF.Language.get('wcf.global.page.pageNavigation') diff --git a/wcfsetup/install/files/style/form.less b/wcfsetup/install/files/style/form.less index d6afd7d079..e910b219bc 100644 --- a/wcfsetup/install/files/style/form.less +++ b/wcfsetup/install/files/style/form.less @@ -213,6 +213,10 @@ select { padding: 3px; } +input[type='number'] { + text-align: right; +} + /* normal state */ input[type='text'], input[type='search'], @@ -339,19 +343,19 @@ textarea { } .tiny { - width: 50px; + width: 80px; } .short { - min-width: 50px; + min-width: 80px; width: 10%; } .medium { - min-width: 100px; + min-width: 150px; width: 30%; } - + .long { min-width: 150px; width: 100%; -- 2.20.1