Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

changes in Bundle.js file are disappear after restarting the UCM

NajdawiMay 21 2013 — edited May 22 2013
Good Day,

I add some javascript code in bundle.js file within the following path: domain_home\ucm\cs\weblayout\resources\bundle.js .
the changes are reflected fine on the UCM, but once the UCM Server restated the changes are gone and the file revert back as is; without my changes.

the code that i want to add is:

if ((typeof Range !== 'undefined') && !Range.prototype.createContextualFragment) {
Range.prototype.createContextualFragment = function(html) {
var frag = document.createDocumentFragment();
var div = document.createElement('div');
frag.appendChild(div);
div.outerHTML = html;
return frag;
};
}

i want to add it because i have a javascript error like this: Object doesn't support property or method 'createContextualFragment', this erro occured when the used version of Internet Explorer is V.9. ; no javascript errors appears on Version 8. when i add this piece of javascript to the bundle.js file, it the error is gone and everything goes fine, but as i said earlier after restarting the UCM the added javascript code is gone and disappear from the bundle.js file.

For that reason i want to ask, is there is a way to keep my code and stay as is even after restarting? Or is the file uploaded on restart from another path?

Any Suggestions?
This post has been answered by Jiri.Machotka-Oracle on May 21 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2013
Added on May 21 2013
5 comments
134 views