Skip to content

Commit

Permalink
Double-click link block heading to edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrance committed Jan 2, 2016
1 parent 69b6eb5 commit 802362c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Homely/res/js/homely.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,9 @@ $(document).ready(function() {
if (!linkBlk.title) linkBlk.title = "";
if (!linkBlk.buttons) linkBlk.buttons = [];
var blk = $("<div/>").addClass("panel panel-" + settings.style["panel"] + " sortable").data("pos", i);
var head = $("<div/>").addClass("panel-heading").text(linkBlk.title);
var head = $("<div/>").addClass("panel-heading").text(linkBlk.title).dblclick(function(e) {
$("#links-editor").data("block", i).modal("show");
});
if (!linkBlk.title) head.html("&nbsp;");
// edit controls dropdown on header
if (settings.links["edit"].menu) {
Expand Down

0 comments on commit 802362c

Please sign in to comment.