From a5e6dd855bac7e71930619bb090461350885acc1 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 5 Apr 2012 22:30:06 +0000 Subject: [PATCH] Layout & spacing for nm customfield header and link widget --- etemplate/js/et2_extension_nextmatch.js | 3 +++ etemplate/js/et2_widget_link.js | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index 441e774c59..4cad5f1025 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -1209,6 +1209,9 @@ var et2_nextmatch_customfields = et2_customfields_list.extend(et2_INextmatchHead init: function() { this.nextmatch = null; this._super.apply(this, arguments); + + // Specifically take the whole column + this.table.css("width", "100%"); }, destroy: function() { diff --git a/etemplate/js/et2_widget_link.js b/etemplate/js/et2_widget_link.js index 857df6cf48..479123a314 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -117,7 +117,7 @@ var et2_link_to = et2_inputWidget.extend({ .appendTo(this.div).addClass("status").hide(); // Need a div for link-to widget - this.link_div = $j(document.createElement("div")).appendTo(this.div); + this.link_div = $j(document.createElement("div")).css("margin-bottom", "1ex").appendTo(this.div); // Link comment field this.comment = $j(document.createElement("input")) @@ -380,7 +380,10 @@ var et2_link_entry = et2_inputWidget.extend({ // Search input this.search = $j(document.createElement("input")).attr("type", "search") - .focus(function(){if(!self.options.application) {self.search.css("width", "60%");self.app_select.show();}}) + .focus(function(){if(!self.options.application) { + // Adjust width, leave room for app select & link button + self.search.css("width", "50%");self.app_select.show(); + }}) .css("width", opt_count == 1 ? "100%" : "60%") .appendTo(this.div);