<?xml version="1.0" encoding="UTF-8"?>
-<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets"
- id="http://sample-web-application.tizen.org/CallLog" version="2.1.0"
- viewmodes="maximized">
- <tizen:application id="1I49ZSFY56.CallLog" package="1I49ZSFY56"
- required_version="2.1" />
- <content src="index.html" />
- <icon src="icon.png" />
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://sample-web-application.tizen.org/CallLog" version="2.1.0" viewmodes="maximized">
+ <tizen:application id="1I49ZSFY56.CallLog" package="1I49ZSFY56" required_version="2.1"/>
+ <content src="index.html"/>
+ <icon src="icon.png"/>
<name>CallLog</name>
- <tizen:privilege name="http://tizen.org/privilege/application.launch" />
- <tizen:privilege name="http://tizen.org/privilege/callhistory.read" />
- <tizen:privilege name="http://tizen.org/privilege/callhistory.write" />
- <tizen:privilege name="http://tizen.org/privilege/contact.read" />
- <tizen:setting screen-orientation="portrait"
- context-menu="disable" background-support="disable" encryption="disable"
- install-location="auto" />
+ <tizen:privilege name="http://tizen.org/privilege/application.launch"/>
+ <tizen:privilege name="http://tizen.org/privilege/callhistory.read"/>
+ <tizen:privilege name="http://tizen.org/privilege/callhistory.write"/>
+ <tizen:privilege name="http://tizen.org/privilege/contact.read"/>
+ <tizen:setting screen-orientation="portrait" context-menu="disable" background-support="disable" encryption="disable" install-location="auto"/>
</widget>
$('#smsActionBtn').on('tap', function (event) {
event.preventDefault();
event.stopPropagation();
+ if ($(this).data('activated')) {
+ return false;
+ }
+
+ self.lockOptionButtons();
self.hideCheckboxes();
app.sendSms($('#forCallerList').data('remoteParty'));
});
$('#callActionBtn').on("tap", function (event) {
event.preventDefault();
event.stopPropagation();
- var $this = jQuery(this);
- if ($this.data('activated')) {
+ if ($(this).data('activated')) {
return false;
}
- $this.data('activated', true);
- setTimeout(function () {
- $this.data('activated', false);
- }, 2000);
-
+ self.lockOptionButtons();
self.hideCheckboxes();
app.makeCall($('#forCallerList').data('remoteParty'));
.on('click', '#popupSubmitActionBtn', this.deleteCheckedLogs.bind(this));
$('#errorPopup').on('tap', '#errorPopupOkBtn', this.closeErrorPopup);
+
+ // workaround fix for N_SE-39520
+ window.addEventListener('softkeyboardchange', function (e) {
+ if (e.state === 'off') {
+ $.mobile.activePage.page('refresh');
+ }
+ });
+ },
+
+ lockOptionButtons: function () {
+ var buttons = $('#callActionBtn, #smsActionBtn');
+ buttons.data('activated', true);
+ setTimeout(function () {
+ buttons.data('activated', false);
+ }, 2000);
},
addEventsForCallerListCheckboxes: function Ui_addEventsForCallerListCheckboxes() {
selectAllDetails: function Ui_selectAllDetails() {
if ($('#selectAllDetails').attr('checked')) {
- $('#selectAllDetails').attr('checked', true).data('checkboxradio').refresh();
+ $('#selectAllDetails')
+ .attr('checked', true)
+ .data('checkboxradio')
+ .refresh();
} else {
- $('#selectAllDetails').attr('checked', false).data('checkboxradio').refresh();
+ $('#selectAllDetails')
+ .attr('checked', false)
+ .data('checkboxradio')
+ .refresh();
}
this.selectAllDetailsEach();
},
.empty()
.append(elements);
+ /* workaround for registering call during working app in removeMode */
+ if (this.removeMode) {
+ if ($('#selectAllDetails').attr('checked')){
+ this.selectAllDetails();
+ }
+ $('#forCallerList .toRemove').show()
+ }
+
/* workaround for UIFW & webkit scroll*/
$.mobile.activePage.css('min-height', 0);
},
},
scrollToBottom: function () {
- var area = $(".ui-scrollview-view"),
- diff = area.height() - area.parent().height();
- if (diff >= 0) {
- area.css('-webkit-transform', 'translate3d(0,-' + diff + 'px,0)');
- }
+ var scrollView = $(".ui-scrollview-view");
+ scrollView.css("-webkit-transform", "translate3d(0px, -" + scrollView.height() + "px, 0px)");
},
/**