fix test loader for wysihtml
This commit is contained in:
parent
493cd63099
commit
c2cda5dfb1
4
grunt.js
4
grunt.js
@ -29,6 +29,10 @@ function getFiles() {
|
|||||||
jquery: {
|
jquery: {
|
||||||
form: [],
|
form: [],
|
||||||
container: [containers+'editable-poshytip.js'],
|
container: [containers+'editable-poshytip.js'],
|
||||||
|
inputs: [
|
||||||
|
inputs+'dateui/dateui.js',
|
||||||
|
inputs+'dateui/dateuifield.js'
|
||||||
|
],
|
||||||
css: []
|
css: []
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -168,13 +168,18 @@
|
|||||||
} else if($.fn.editabletypes.dateuifield) {
|
} else if($.fn.editabletypes.dateuifield) {
|
||||||
type = 'dateuifield';
|
type = 'dateuifield';
|
||||||
}
|
}
|
||||||
//popup
|
//popup
|
||||||
} else {
|
} else {
|
||||||
if($.fn.editabletypes.date) {
|
if($.fn.editabletypes.date) {
|
||||||
type = 'date';
|
type = 'date';
|
||||||
} else if($.fn.editabletypes.dateui) {
|
} else if($.fn.editabletypes.dateui) {
|
||||||
type = 'dateui';
|
type = 'dateui';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//if type still `date` and not exist in types, replace with `combodate` that is base input
|
||||||
|
if(type === 'date' && !$.fn.editabletypes.date) {
|
||||||
|
type = 'combodate';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,12 +82,12 @@ define(function () {
|
|||||||
},
|
},
|
||||||
|
|
||||||
//wysihtml5
|
//wysihtml5
|
||||||
'inputs/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.min': ['inputs/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.min'],
|
'inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.min': ['inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.min'],
|
||||||
'inputs/wysihtml5/wysihtml5': {
|
'inputs-ext/wysihtml5/wysihtml5': {
|
||||||
deps: ['require',
|
deps: ['require',
|
||||||
'bootstrap/js/bootstrap',
|
'bootstrap/js/bootstrap',
|
||||||
'inputs/abstract',
|
'inputs/abstract',
|
||||||
'inputs/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.min'],
|
'inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.min'],
|
||||||
init: function(require) {
|
init: function(require) {
|
||||||
loadCss(require.toUrl("./bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css"));
|
loadCss(require.toUrl("./bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css"));
|
||||||
//loadCss(require.toUrl("./bootstrap-wysihtml5-0.0.2/wysiwyg-color.css"));
|
//loadCss(require.toUrl("./bootstrap-wysihtml5-0.0.2/wysiwyg-color.css"));
|
||||||
@ -120,7 +120,6 @@ define(function () {
|
|||||||
/*
|
/*
|
||||||
plain
|
plain
|
||||||
*/
|
*/
|
||||||
//'inputs/dateui/dateui': ['inputs/abstract', 'inputs/date/bootstrap-datepicker/js/bootstrap-datepicker'],
|
|
||||||
'containers/editable-poshytip': [
|
'containers/editable-poshytip': [
|
||||||
'containers/editable-inline',
|
'containers/editable-inline',
|
||||||
'poshytip/jquery.poshytip'
|
'poshytip/jquery.poshytip'
|
||||||
@ -155,7 +154,7 @@ define(function () {
|
|||||||
if(f === 'bootstrap') {
|
if(f === 'bootstrap') {
|
||||||
//bootstrap
|
//bootstrap
|
||||||
shim['editable-form/editable-form'].deps.push('inputs/date/datefield');
|
shim['editable-form/editable-form'].deps.push('inputs/date/datefield');
|
||||||
shim['editable-form/editable-form'].deps.push('inputs/wysihtml5/wysihtml5');
|
shim['editable-form/editable-form'].deps.push('inputs-ext/wysihtml5/wysihtml5');
|
||||||
shim['element/editable-element'].deps.push('editable-form/editable-form-bootstrap');
|
shim['element/editable-element'].deps.push('editable-form/editable-form-bootstrap');
|
||||||
shim['element/editable-element'].deps.push('containers/editable-popover');
|
shim['element/editable-element'].deps.push('containers/editable-popover');
|
||||||
} else if(f === 'jqueryui') {
|
} else if(f === 'jqueryui') {
|
||||||
@ -165,7 +164,7 @@ define(function () {
|
|||||||
shim['element/editable-element'].deps.push('containers/editable-tooltip');
|
shim['element/editable-element'].deps.push('containers/editable-tooltip');
|
||||||
} else {
|
} else {
|
||||||
//plain
|
//plain
|
||||||
shim['editable-form/editable-form'].deps.push('inputs/dateui/dateui');
|
shim['editable-form/editable-form'].deps.push('inputs/dateui/dateuifield');
|
||||||
shim['inputs/dateui/dateui'].push('inputs/dateui/jquery-ui-datepicker/js/jquery-ui-1.9.1.custom');
|
shim['inputs/dateui/dateui'].push('inputs/dateui/jquery-ui-datepicker/js/jquery-ui-1.9.1.custom');
|
||||||
shim['element/editable-element'].deps.push('containers/editable-poshytip');
|
shim['element/editable-element'].deps.push('containers/editable-poshytip');
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ $(function () {
|
|||||||
equal(e.html().toLowerCase().replace(/\s*\n(?!\r)/g, ""), v2.toLowerCase(), 'new text shown');
|
equal(e.html().toLowerCase().replace(/\s*\n(?!\r)/g, ""), v2.toLowerCase(), 'new text shown');
|
||||||
df.resolve();
|
df.resolve();
|
||||||
}, timeout);
|
}, timeout);
|
||||||
}, 800);
|
}, 1000);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
return df.promise();
|
return df.promise();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user