Replaced symbolic links with forceLayout map

Closes #686
This commit is contained in:
Igor Zhukov 2015-02-11 15:14:40 +03:00
parent ef4700eafc
commit d53566c034
6 changed files with 9 additions and 6 deletions

View File

@ -275,7 +275,14 @@ function listUniqSorted (list) {
}
function templateUrl (tplName) {
return 'partials/' + (Config.Mobile ? 'mobile' : 'desktop') + '/' + tplName + '.html';
var forceLayout = {
confirm_modal: 'desktop',
error_modal: 'desktop',
media_modal_layout: 'desktop',
slider: 'desktop',
};
var layout = forceLayout[tplName] || (Config.Mobile ? 'mobile' : 'desktop');
return 'partials/' + layout + '/' + tplName + '.html';
}
function encodeEntities(value) {

View File

@ -66,7 +66,7 @@ Stack: {{error.originalError.stack || error.stack}}</textarea>
</div>
<div class="md_simple_modal_footer">
<button class="btn btn-md" ng-click="$dismiss()">
<button class="btn btn-md btn-md-primary" ng-click="$dismiss()">
<span my-i18n="modal_ok"></span>
</button>
</div>

View File

@ -1 +0,0 @@
../desktop/confirm_modal.html

View File

@ -1 +0,0 @@
../desktop/error_modal.html

View File

@ -1 +0,0 @@
../desktop/media_modal_layout.html

View File

@ -1 +0,0 @@
../desktop/slider.html