Changeset 8116

Show
Ignore:
Timestamp:
12/20/11 04:00:17 (17 months ago)
Author:
jow
Message:

libs/web: fix placeholder attribute for DynList?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/web/htdocs/luci-static/resources/cbi.js

    r8115 r8116  
    502502    var prefix = input0.name; 
    503503    var parent = input0.parentNode; 
     504    var holder = input0.placeholder; 
    504505 
    505506    var values; 
     
    545546                t.index = i; 
    546547                t.className = 'cbi-input-text'; 
     548 
     549            if (i == 0 && holder) 
     550            { 
     551                t.placeholder = holder; 
     552            } 
    547553 
    548554            var b = document.createElement('img');