Browse Source

Fixed photo, video modal bugs, added close button to small screens

TitanNano-voice_recorder
Igor Zhukov 11 years ago
parent
commit
7b03451f52
  1. 2
      app/css/app.css
  2. 7
      app/js/services.js
  3. 2
      app/manifest.json
  4. 2
      app/manifest.webapp
  5. 2
      app/partials/chat_modal.html
  6. 3
      app/partials/settings_modal.html
  7. 1
      app/partials/user_modal.html
  8. 2
      app/vendor/ui-bootstrap/ui-bootstrap-custom-tpls-0.10.0.js

2
app/css/app.css

@ -231,7 +231,7 @@ fieldset[disabled] .btn-tg.active {
width: 33px; width: 33px;
height: 33px; height: 33px;
float: right; float: right;
margin: 60px 10px 0 0; margin: 60px 30px 0 0;
opacity: 0.5; opacity: 0.5;
pointer-events: none; pointer-events: none;

7
app/js/services.js

@ -1485,7 +1485,7 @@ angular.module('myApp.services', [])
function wrapForFull (photoID) { function wrapForFull (photoID) {
var photo = wrapForHistory(photoID), var photo = wrapForHistory(photoID),
fullWidth = 542, fullWidth = Math.min($(window).width() - 60, 542),
fullHeight = $($window).height() - 150, fullHeight = $($window).height() - 150,
fullPhotoSize = choosePhotoSize(photo, fullWidth, fullHeight), fullPhotoSize = choosePhotoSize(photo, fullWidth, fullHeight),
full = { full = {
@ -1583,7 +1583,7 @@ angular.module('myApp.services', [])
function wrapForFull (videoID) { function wrapForFull (videoID) {
var video = wrapForHistory(videoID), var video = wrapForHistory(videoID),
fullWidth = 542, fullWidth = Math.min($(window).width() - 60, 542),
fullHeight = $($window).height() - 150, fullHeight = $($window).height() - 150,
fullPhotoSize = video, fullPhotoSize = video,
full = { full = {
@ -2395,9 +2395,8 @@ angular.module('myApp.services', [])
notification.close(); notification.close();
if (window.chrome && chrome.app) { if (window.chrome && chrome.app) {
chrome.app.window.current().focus(); chrome.app.window.current().focus();
} else {
window.focus();
} }
window.focus();
notificationsClear(); notificationsClear();
if (data.onclick) { if (data.onclick) {
data.onclick(); data.onclick();

2
app/manifest.json

@ -1,6 +1,6 @@
{ {
"name": "Telegram UNOFFICIAL", "name": "Telegram UNOFFICIAL",
"version": "0.0.14", "version": "0.0.15",
"short_name": "Webogram", "short_name": "Webogram",
"manifest_version": 2, "manifest_version": 2,
"app": { "app": {

2
app/manifest.webapp

@ -1,7 +1,7 @@
{ {
"name": "Webogram", "name": "Webogram",
"description": "Webogram – UNOFFICIAL Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram", "description": "Webogram – UNOFFICIAL Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram",
"version": "0.0.14", "version": "0.0.15",
"launch_path": "/index.html", "launch_path": "/index.html",
"developer": { "developer": {
"name": "Igor Zhukov", "name": "Igor Zhukov",

2
app/partials/chat_modal.html

@ -1,7 +1,7 @@
<div class="chat_modal_wrap"> <div class="chat_modal_wrap">
<div class="modal-header"> <div class="modal-header">
<!-- <a class="modal-close-link" ng-click="$close()">Close</a> --> <a class="modal-close-link visible-xs" ng-click="$close()">Close</a>
<h4 class="modal-title">Group Info</h4> <h4 class="modal-title">Group Info</h4>
</div> </div>

3
app/partials/settings_modal.html

@ -1,6 +1,7 @@
<div class="settings_modal_wrap"> <div class="settings_modal_wrap">
<div class="modal-header"> <div class="modal-header">
<a class="modal-close-link visible-xs" ng-click="$close()">Close</a>
<h4 class="modal-title">Settings</h4> <h4 class="modal-title">Settings</h4>
</div> </div>
@ -60,7 +61,7 @@
<p> <p>
<strong>Version: </strong> <strong>Version: </strong>
<span class="settings_version">alpha 0.0.13</span> <span class="settings_version">alpha 0.0.15</span>
</p> </p>
<hr/> <hr/>

1
app/partials/user_modal.html

@ -1,6 +1,7 @@
<div class="user_modal_wrap"> <div class="user_modal_wrap">
<div class="modal-header"> <div class="modal-header">
<a class="modal-close-link visible-xs" ng-click="$close()">Close</a>
<h4 class="modal-title">Info</h4> <h4 class="modal-title">Info</h4>
</div> </div>

2
app/vendor/ui-bootstrap/ui-bootstrap-custom-tpls-0.10.0.js vendored

@ -1074,7 +1074,7 @@ angular.module("template/modal/backdrop.html", []).run(["$templateCache", functi
angular.module("template/modal/window.html", []).run(["$templateCache", function($templateCache) { angular.module("template/modal/window.html", []).run(["$templateCache", function($templateCache) {
$templateCache.put("template/modal/window.html", $templateCache.put("template/modal/window.html",
"<div tabindex=\"-1\" class=\"modal fade {{ windowClass }}\" ng-class=\"{in: animate}\" ng-style=\"{'z-index': 1050 + index*10, display: 'block'}\" ng-click=\"close($event)\">\n" + "<div tabindex=\"-1\" class=\"modal fade {{ windowClass }}\" ng-class=\"{in: animate}\" ng-style=\"{'z-index': 1050 + index*10, display: 'block'}\" ng-click=\"close($event)\">\n" +
" <div class=\"modal_close_wrap\" ng-click=\"close($event)\">\n" + " <div class=\"modal_close_wrap visible-md\" ng-click=\"close($event)\">\n" +
" <div class=\"modal_close\"></div>\n" + " <div class=\"modal_close\"></div>\n" +
" </div>\n" + " </div>\n" +
" <div class=\"modal-dialog\"><div class=\"modal-content\" ng-transclude></div></div>\n" + " <div class=\"modal-dialog\"><div class=\"modal-content\" ng-transclude></div></div>\n" +

Loading…
Cancel
Save