[mobile] Change display Collaboration icons

This commit is contained in:
Julia Svinareva 2019-07-30 11:12:26 +03:00
parent de847a5726
commit d9f90692d8
12 changed files with 18 additions and 12 deletions

View file

@ -55,7 +55,7 @@
</a>
</li>
<% } %>
<% if(phone) {%>
<% if(width < 360) {%>
<li>
<div id="settings-collaboration" class="item-content" style="display: none;">
<div class="item-media">

View file

@ -42,7 +42,7 @@
<i class="icon icon-search"></i>
</a>
<% } %>
<% if (!phone) { %>
<% if (width >= 360) { %>
<a href="#" id="toolbar-collaboration" class="link icon-only disabled" style="display: none;">
<i class="icon icon-collaboration"></i>
</a>

View file

@ -90,7 +90,8 @@ define([
android : Common.SharedSettings.get('android'),
phone : Common.SharedSettings.get('phone'),
orthography: Common.SharedSettings.get('sailfish'),
scope : this
scope : this,
width : $(window).width()
}));
return this;

View file

@ -90,7 +90,8 @@ define([
android : Common.SharedSettings.get('android'),
phone : Common.SharedSettings.get('phone'),
backTitle : Common.SharedSettings.get('android') ? '' : me.textBack,
scope : me
scope : me,
width : $(window).width()
}));
$('.view-main .navbar').on('addClass removeClass', _.bind(me.onDisplayMainNavbar, me));

View file

@ -25,7 +25,7 @@
</a>
</li>
<% } %>
<% if(phone) {%>
<% if(width < 390) {%>
<li>
<div id="settings-collaboration" class="item-content" style="display: none;">
<div class="item-media">

View file

@ -45,7 +45,7 @@
<i class="icon icon-search"></i>
</a>
<% } %>
<% if (!phone) { %>
<% if (width >= 390) { %>
<a href="#" id="toolbar-collaboration" class="link icon-only disabled" style="display: none;">
<i class="icon icon-collaboration"></i>
</a>

View file

@ -91,7 +91,8 @@ define([
this.layout = $('<div/>').append(this.template({
android: Common.SharedSettings.get('android'),
phone: Common.SharedSettings.get('phone'),
scope: this
scope: this,
width: $(window).width()
}));
return this;

View file

@ -91,7 +91,8 @@ define([
android : Common.SharedSettings.get('android'),
phone : Common.SharedSettings.get('phone'),
backTitle : Common.SharedSettings.get('android') ? '' : me.textBack,
scope : me
scope : me,
width : $(window).width()
}));
$('.view-main .navbar').on('addClass removeClass', _.bind(me.onDisplayMainNavbar, me));

View file

@ -25,7 +25,7 @@
</a>
</li>
<% } %>
<% if(phone) {%>
<% if(width < 360) {%>
<li>
<div id="settings-collaboration" class="item-content" style="display: none;">
<div class="item-media">

View file

@ -42,7 +42,7 @@
<i class="icon icon-search"></i>
</a>
<% } %>
<% if (!phone) { %>
<% if (width >= 360) { %>
<a href="#" id="toolbar-collaboration" class="link icon-only disabled" style="display: none;">
<i class="icon icon-collaboration"></i>
</a>

View file

@ -100,7 +100,8 @@ define([
csv: Asc.c_oAscFileType.CSV,
xltx: Asc.c_oAscFileType.XLTX,
ots: Asc.c_oAscFileType.OTS
}
},
width : $(window).width()
}));
return this;

View file

@ -80,7 +80,8 @@ define([
$el.prepend(me.template({
android : Common.SharedSettings.get('android'),
phone : Common.SharedSettings.get('phone'),
backTitle : Common.SharedSettings.get('android') ? '' : me.textBack
backTitle : Common.SharedSettings.get('android') ? '' : me.textBack,
width : $(window).width()
}));
$('.view-main .navbar').on('addClass removeClass', _.bind(me.onDisplayMainNavbar, me));