From e8f6a536f8fb7aa326581df10bcd529a31fa6b1e Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 13 Dec 2016 16:32:06 +0300 Subject: [PATCH] [PE mobile] Debug inserting link. --- apps/presentationeditor/mobile/app/controller/add/AddLink.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/presentationeditor/mobile/app/controller/add/AddLink.js b/apps/presentationeditor/mobile/app/controller/add/AddLink.js index 768c3f4a3..969caec5f 100644 --- a/apps/presentationeditor/mobile/app/controller/add/AddLink.js +++ b/apps/presentationeditor/mobile/app/controller/add/AddLink.js @@ -132,8 +132,11 @@ define([ $('#add-link-number')[(_linkType==c_oHyperlinkType.WebLink) ? 'hide' : 'show'](); if (_linkType==c_oHyperlinkType.WebLink) { + $('#add-link-url input[type=url]').single('input', _.bind(function(e) { + $('#add-link-insert').toggleClass('disabled', _.isEmpty($('#add-link-url input').val())); + }, this)); _.delay(function () { - $('.page[data-page=addlink-link] input[type=url]').focus(); + $('#add-link-url input[type=url]').focus(); }, 1000); } else { var slidename = '';