diff options
author | Trent Richardson <trentdrichardson@gmail.com> | 2014-12-09 15:10:20 -0500 |
---|---|---|
committer | Trent Richardson <trentdrichardson@gmail.com> | 2014-12-09 15:10:20 -0500 |
commit | 84a78b1c915a89142721d741c073d8f31888a815 (patch) | |
tree | 8847f581f58fc9b62419fa389aa6c76e37f7adae /src/jquery-impromptu.js | |
parent | 17c5b7ab1e992b8fe3e7e49dd024a2bd9c94b958 (diff) | |
download | jQuery-Impromptu-84a78b1c915a89142721d741c073d8f31888a815.zip jQuery-Impromptu-84a78b1c915a89142721d741c073d8f31888a815.tar.gz jQuery-Impromptu-84a78b1c915a89142721d741c073d8f31888a815.tar.bz2 |
#46 Remove use of id in html markup to avoid collisions with multiple prompts
Diffstat (limited to 'src/jquery-impromptu.js')
-rw-r--r-- | src/jquery-impromptu.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jquery-impromptu.js b/src/jquery-impromptu.js index 10f770d..e4af2de 100644 --- a/src/jquery-impromptu.js +++ b/src/jquery-impromptu.js @@ -388,7 +388,7 @@ showHtml = 'Error: html function must return text';
}
- state += '<div id="'+ opts.prefix +'state_'+ statename +'" class="'+ opts.prefix + 'state" data-jqi-name="'+ statename +'" style="display:none;">'+
+ state += '<div class="'+ opts.prefix + 'state" data-jqi-name="'+ statename +'" style="display:none;">'+
arrow + title +
'<div class="'+ opts.prefix +'message '+ opts.classes.message +'">' + showHtml +'</div>'+
'<div class="'+ opts.prefix +'buttons '+ opts.classes.buttons +'"'+ ($.isEmptyObject(stateobj.buttons)? 'style="display:none;"':'') +'>';
@@ -416,7 +416,7 @@ state += ' '+ ($.isArray(v.classes)? v.classes.join(' ') : v.classes) + ' ';
}
- state += '" name="' + opts.prefix + '_' + statename + '_button' + v.title.replace(/[^a-z0-9]+/gi,'') + '" id="' + opts.prefix + '_' + statename + '_button' + v.title.replace(/[^a-z0-9]+/gi,'') + '" value="' + v.value + '">' + v.title + '</button>';
+ state += '" name="' + opts.prefix + '_' + statename + '_button' + v.title.replace(/[^a-z0-9]+/gi,'') + '" value="' + v.value + '">' + v.title + '</button>';
}
state += '</div></div>';
|