Small optimizations
authorMarcel Werk <burntime@woltlab.com>
Sun, 28 Apr 2013 14:40:20 +0000 (16:40 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 28 Apr 2013 14:40:20 +0000 (16:40 +0200)
wcfsetup/install/files/js/WCF.js
wcfsetup/install/files/style/form.less

index e33392436bdbebd41e2c7f062cd5bb86380447b3..df80ccbc497984bd12388cb67ecc431162f07c5c 100755 (executable)
@@ -5630,7 +5630,7 @@ WCF.System.PageNavigation = {
                        
                        var $fieldset = $('<fieldset><legend>' + WCF.Language.get('wcf.global.page.jumpTo') + '</legend></fieldset>').appendTo(this._dialog);
                        $('<dl><dt><label for="jsPageNavigationPageNo">' + WCF.Language.get('wcf.global.page.jumpTo') + '</label></dt><dd></dd></dl>').appendTo($fieldset);
-                       this._pageNo = $('<input type="number" id="jsPageNavigationPageNo" value="1" min="1" max="1" class="medium" />').keyup($.proxy(this._keyUp, this)).appendTo($fieldset.find('dd'));
+                       this._pageNo = $('<input type="number" id="jsPageNavigationPageNo" value="1" min="1" max="1" class="tiny" />').keyup($.proxy(this._keyUp, this)).appendTo($fieldset.find('dd'));
                        this._description = $('<small></small>').insertAfter(this._pageNo);
                        var $formSubmit = $('<div class="formSubmit" />').appendTo(this._dialog);
                        this._button = $('<button class="buttonPrimary">' + WCF.Language.get('wcf.global.button.submit') + '</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')
index d6afd7d0791e6a4ecbb76bf7c0af53d281da9833..e910b219bcf69a97dbd94884011caa42a0ffbc5f 100644 (file)
@@ -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%;