Browse Source

Now using IE8 workaround of davclient.js for all IE versions

remotes/origin/fix-delete-homeidr-on-userdelete
Vincent Petry 11 years ago
committed by Lukas Reschke
parent
commit
a05e40932c
  1. 2
      core/js/files/iedavclient.js
  2. 4
      lib/private/template.php

2
core/js/files/ie8davclient.js → core/js/files/iedavclient.js

@ -12,7 +12,7 @@
(function(dav) {
/**
* Override davclient.js methods with IE8-compatible logic
* Override davclient.js methods with IE-compatible logic
*/
dav.Client.prototype = _.extend({}, dav.Client.prototype, {

4
lib/private/template.php

@ -161,9 +161,9 @@ class OC_Template extends \OC\Template\Base {
throw new \Exception('Cannot read core/js/core.json');
}
if (\OC::$server->getRequest()->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_IE_8])) {
if (\OC::$server->getRequest()->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_IE])) {
// shim for the davclient.js library
\OCP\Util::addScript('files/ie8davclient');
\OCP\Util::addScript('files/iedavclient');
}
self::$initTemplateEngineFirstRun = false;

Loading…
Cancel
Save