First Initial
This commit is contained in:
19
wwwroot/BackendScript/assets/jquery-multi-select/test/spec/SpecHelper.js
vendored
Normal file
19
wwwroot/BackendScript/assets/jquery-multi-select/test/spec/SpecHelper.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
var select;
|
||||
var msContainer;
|
||||
|
||||
beforeEach(function() {
|
||||
$('<select id="multi-select" multiple="multiple" name="test[]"></select>').appendTo('body');
|
||||
for (var i=1; i <= 10; i++) {
|
||||
$('<option value="value'+i+'">text'+i+'</option>').appendTo($("#multi-select"));
|
||||
};
|
||||
select = $("#multi-select");
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
$("#multi-select, #multi-select-optgroup, .ms-container").remove();
|
||||
});
|
||||
|
||||
sanitize = function(value){
|
||||
reg = new RegExp("\\W+", 'gi');
|
||||
return value.replace(reg, '_');
|
||||
}
|
||||
Reference in New Issue
Block a user