Finalized upgrade to EasyUI 1.4.2. Lots and LOTS of breakages. And RTL work. Much RTL work.
This commit is contained in:
@@ -120,4 +120,4 @@
|
||||
|
||||
</script>
|
||||
|
||||
<span id="<%=this.ClientID %>_SpanGeographies"><select class="easyui-combotree" name="DropGeographies" id="<%=this.ClientID %>_DropGeographies" animate="true" style="width:300px"></select></span>
|
||||
<span id="<%=this.ClientID %>_SpanGeographies"><select class="easyui-combotree" name="DropGeographies" id="<%=this.ClientID %>_DropGeographies" animate="true" style="width:324px"></select></span>
|
||||
@@ -13,7 +13,7 @@
|
||||
<%
|
||||
if (!SuppressPrompt)
|
||||
{
|
||||
Response.Write ("$('#" + this.ClientID + "_SpanBudgets span.combo input.combo-text').val(\"" + Resources.Global.Global_DropInits_SelectFinancialAccount + "\");");
|
||||
Response.Write ("$('#" + this.ClientID + "_SpanBudgets span.combo input.textbox-text').val(\"" + Resources.Global.Global_DropInits_SelectFinancialAccount + "\");");
|
||||
}
|
||||
if (!String.IsNullOrEmpty(this.OnClientLoaded))
|
||||
{
|
||||
@@ -28,12 +28,12 @@
|
||||
|
||||
%>
|
||||
});
|
||||
|
||||
$('#<%=this.ClientID %>_SpanBudgets span.combo input.combo-text').click(function () {
|
||||
|
||||
$('#<%=this.ClientID %>_SpanBudgets span.combo input.textbox-text').click(function () {
|
||||
$('#<%=this.ClientID %>_SpanBudgets span.combo span span.combo-arrow').click();
|
||||
});
|
||||
|
||||
$('#<%=this.ClientID %>_SpanBudgets span.combo input.combo-text').keydown(function (e) {
|
||||
$('#<%=this.ClientID %>_SpanBudgets span.combo input.textbox-text').keydown(function (e) {
|
||||
switch (e.which) {
|
||||
case 40: // down
|
||||
var panel = $('#<%=this.ClientID %>_DropBudgets').combotree('panel');
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ComboPeople.ascx.cs" Inherits="Swarmops.Controls.Financial.ComboPeople" %>
|
||||
<%@ Import Namespace="System.Threading" %>
|
||||
|
||||
<% string _nearEdge = Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft ? "right" : "left"; %>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#<%=this.ClientID %>_DropPeople').combobox({
|
||||
animate: true,
|
||||
height: 32,
|
||||
panelWidth: 300,
|
||||
panelAlign: '<%= Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft? "right": "left" %>',
|
||||
panelAlign: '<%= _nearEdge %>',
|
||||
loader: <%=this.ClientID %>_autoCompleteLoader,
|
||||
mode: 'remote',
|
||||
valueField: 'id',
|
||||
@@ -94,7 +96,7 @@
|
||||
|
||||
function <%=this.ClientID %>_formatItem(row)
|
||||
{
|
||||
var s = '<span style="padding-left:20px;margin-left:4px;' + "background-image:url('" + row.avatar16Url + "');" + 'background-position:left center;background-repeat:no-repeat">' + row.name + '</span>';
|
||||
var s = '<span style="padding-<%= _nearEdge %>:20px;margin-<%= _nearEdge %>:4px;' + "background-image:url('" + row.avatar16Url + "');" + 'background-position:<%= _nearEdge %> center;background-repeat:no-repeat">' + row.name + '</span>';
|
||||
return s;
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
<div class="logoimage"><a href="/"><asp:Image runat="server" ID="ImageLogo" AlternateText="Swarmops Logo"/></a></div>
|
||||
<div class="break"></div>
|
||||
<div class="topmenu">
|
||||
<div class="searchbox"><asp:TextBox ID="SearchBox" runat="server" /></div>
|
||||
<div class="topSearchBox"><asp:TextBox ID="SearchBox" runat="server" /></div>
|
||||
<Swarmops5:MainMenu ID="MainMenu" runat="server" />
|
||||
</div>
|
||||
|
||||
|
||||
@@ -284,12 +284,12 @@
|
||||
|
||||
// Clear out data in modal form, gray out to indicate being loaded
|
||||
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.combo-text').css('background-color', '#DDD');
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.combo-text').css('background-color', '#DDD');
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.textbox-text').css('background-color', '#DDD');
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').css('background-color', '#DDD');
|
||||
$('#TextAccountBudget').val('...').css('background-color', '#DDD');
|
||||
$('#TextAccountName').val('...').css('background-color', '#DDD');
|
||||
$('#<%=CurrencyInitialBalance.ClientID%>_Input').val('...').css('background-color', '#DDD');
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.combo-text').attr('placeholder', '...');
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').attr('placeholder', '...');
|
||||
|
||||
accountTree.combotree('setText', '...');
|
||||
parentAccountName = '';
|
||||
@@ -419,10 +419,10 @@
|
||||
parentAccountName = msg.d.ParentAccountName;
|
||||
setAccountTreeText(parentAccountName);
|
||||
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.combo-text').css('background-color', '#FFF');
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.combo-text').css('background-image', "url('" + msg.d.AccountOwnerAvatarUrl + "')");
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.combo-text').attr('placeholder', msg.d.AccountOwnerName);
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.combo-text').val('');
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').css('background-color', '#FFF');
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').css('background-image', "url('" + msg.d.AccountOwnerAvatarUrl + "')");
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').attr('placeholder', msg.d.AccountOwnerName);
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').val('');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -446,8 +446,9 @@
|
||||
<%=this.DialogAccount.ClientID %>_open();
|
||||
}
|
||||
|
||||
function onOwnerChange(personId) {
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.combo-text').css('background-color', '#FFFFE0');
|
||||
function onOwnerChange(personId) {
|
||||
alert('onOwnerChange');
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').css('background-color', '#FFFFE0');
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/Pages/v5/Ledgers/AccountPlan.aspx/SetAccountOwner",
|
||||
@@ -456,20 +457,20 @@
|
||||
dataType: "json",
|
||||
success: function(msg) {
|
||||
if (msg.d) { // all went ok
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.combo-text').css('background-color', '#E0FFE0');
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').css('background-color', '#E0FFE0');
|
||||
accountDirty = true;
|
||||
} else {
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.combo-text').css('background-color', '#FFA0A0');
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').css('background-color', '#FFA0A0');
|
||||
// TODO: Reset combo box
|
||||
alertify.error("There was an error setting the budget owner."); // TODO: Localize
|
||||
}
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.combo-text').animate({ backgroundColor: "#FFFFFF" }, 250);
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').animate({ backgroundColor: "#FFFFFF" }, 250);
|
||||
},
|
||||
error: function() {
|
||||
alertify.error("There was an error making the call to set budget owner. Is the server available?");
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.combo-text').css('background-color', '#FFA0A0');
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').css('background-color', '#FFA0A0');
|
||||
// TODO: Reset combo box
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.combo-text').animate({ backgroundColor: "#FFFFFF" }, 250);
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.textbox-text').animate({ backgroundColor: "#FFFFFF" }, 250);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -480,7 +481,7 @@
|
||||
var currentText = accountTree.combotree('getText');
|
||||
if (currentText.length < 3 && parentAccountName.length > 2) {
|
||||
accountTree.combotree('setText', parentAccountName);
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.combo-text').css('background-color', '#FFF');
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.textbox-text').css('background-color', '#FFF');
|
||||
} else if (!accountTreeLoaded) {
|
||||
setTimeout(function() {
|
||||
setAccountTreeText(text);
|
||||
@@ -494,7 +495,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.combo-text').css('background-color', '#FFFFE0');
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.textbox-text').css('background-color', '#FFFFE0');
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/Pages/v5/Ledgers/AccountPlan.aspx/SetAccountParent",
|
||||
@@ -503,20 +504,20 @@
|
||||
dataType: "json",
|
||||
success: function(msg) {
|
||||
if (msg.d) { // all went ok
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.combo-text').css('background-color', '#E0FFE0');
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.textbox-text').css('background-color', '#E0FFE0');
|
||||
accountDirty = true;
|
||||
} else {
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.combo-text').css('background-color', '#FFA0A0');
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.textbox-text').css('background-color', '#FFA0A0');
|
||||
$('#<%=DropParents.ClientID %>_DropBudgets').combotree('setText', parentAccountName);
|
||||
alertify.error("Cannot reparent accounts with transactions in closed ledgers - yet."); // TODO: Localize
|
||||
}
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.combo-text').animate({ backgroundColor: "#FFFFFF" }, 250);
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.textbox-text').animate({ backgroundColor: "#FFFFFF" }, 250);
|
||||
},
|
||||
error: function() {
|
||||
alertify.error("There was an error making the call to set budget parent. Is the server available?");
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.combo-text').css('background-color', '#FFA0A0');
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.textbox-text').css('background-color', '#FFA0A0');
|
||||
$('#<%=DropParents.ClientID %>_DropBudgets').combotree('setText', parentAccountName);
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.combo-text').animate({ backgroundColor: "#FFFFFF" }, 250);
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.textbox-text').animate({ backgroundColor: "#FFFFFF" }, 250);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -528,7 +529,7 @@
|
||||
accountTreeLoaded = true;
|
||||
if (parentAccountName != null && parentAccountName.length > 0) {
|
||||
accountTree.combotree('setText', parentAccountName);
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.combo-text').css('background-color', '#FFF');
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.textbox-text').css('background-color', '#FFF');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -565,6 +566,11 @@
|
||||
.CheckboxContainer {
|
||||
float: right; padding-top: 4px;padding-right: 8px;
|
||||
}
|
||||
body.rtl .CheckboxContainer {
|
||||
float: left;
|
||||
padding-right: inherit;
|
||||
padding-left: 8px;
|
||||
}
|
||||
.RowInactive
|
||||
{
|
||||
color: #C0C0C0;
|
||||
|
||||
@@ -158,7 +158,7 @@ img
|
||||
}
|
||||
|
||||
|
||||
.searchbox
|
||||
.topSearchBox
|
||||
{
|
||||
float:right;
|
||||
position:relative;
|
||||
@@ -166,12 +166,12 @@ img
|
||||
left:-5px;
|
||||
}
|
||||
|
||||
body.rtl .searchbox {
|
||||
body.rtl .topSearchBox {
|
||||
float: left;
|
||||
left: 5px;
|
||||
}
|
||||
|
||||
.searchbox input
|
||||
.topSearchBox input
|
||||
{
|
||||
width:150px;
|
||||
-moz-border-radius: 2em;
|
||||
@@ -188,7 +188,7 @@ body.rtl .searchbox {
|
||||
font-family: Ubuntu, Liberation Sans, Arial, Helvetica, Sans-Serif;
|
||||
}
|
||||
|
||||
body.rtl .searchbox input {
|
||||
body.rtl .topSearchBox input {
|
||||
padding-left: inherit;
|
||||
padding-right: 26px;
|
||||
background-position-x: right;
|
||||
@@ -307,7 +307,7 @@ body.rtl .sidebar {
|
||||
margin-bottom: 7px;
|
||||
}
|
||||
|
||||
.content > h2 > select, .content > h2 > span > span.combo > input.combo-text, .content > h2 > input, .content > h2 > span.elementFloatFar > input {
|
||||
.content > h2 > select, .content > h2 > span > span.combo > input.textbox-text, .content > h2 > input, .content > h2 > span.elementFloatFar > input {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #1C397E;
|
||||
@@ -320,7 +320,7 @@ body.rtl .sidebar {
|
||||
height: 20px !important;
|
||||
}
|
||||
|
||||
.content > h2 > span > span.combo > input.combo-text {
|
||||
.content > h2 > span > span.combo > input.textbox-text {
|
||||
height: 20px !important;
|
||||
line-height: 20px !important;
|
||||
}
|
||||
@@ -799,20 +799,6 @@ input.entryError, span.entryError, div.entryError {
|
||||
}
|
||||
|
||||
|
||||
select.comboperson+span>input {
|
||||
width: 252px !important;
|
||||
padding-left: 34px;
|
||||
/* background: url('http://s.gravatar.com/avatar/15638826ee119289c902c4f85e77a2f0?s=24&r=g'); */
|
||||
background-repeat: no-repeat;
|
||||
background-color: white;
|
||||
background-position: 6px 2px;
|
||||
}
|
||||
|
||||
|
||||
select.comboperson+span>input:focus
|
||||
{
|
||||
background-image: none !important;
|
||||
}
|
||||
|
||||
|
||||
.button
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
/* combo inner, add some distance to dropdown arrow */
|
||||
|
||||
span.textbox.combo > .textbox-text {
|
||||
select:not(.comboperson)+span.textbox.combo > .textbox-text {
|
||||
width: 278px !important;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,26 @@ span.textbox.combo > .textbox-text {
|
||||
}
|
||||
|
||||
|
||||
select.comboperson+span.textbox.combo>input.textbox-text {
|
||||
width: 264px !important;
|
||||
padding-left: 34px !important;
|
||||
/* background: url('http://s.gravatar.com/avatar/15638826ee119289c902c4f85e77a2f0?s=24&r=g'); */
|
||||
background-repeat: no-repeat;
|
||||
background-color: white;
|
||||
background-position: 6px 2px;
|
||||
}
|
||||
|
||||
body.rtl select.comboperson+span.textbox.combo>input.textbox-text {
|
||||
padding-left: inherit !important;
|
||||
padding-right: 34px !important;
|
||||
background-position: 268px 2px;
|
||||
}
|
||||
|
||||
|
||||
select.comboperson+span>input:focus
|
||||
{
|
||||
background-image: none !important;
|
||||
}
|
||||
|
||||
/* RTL fixes for combo */
|
||||
|
||||
@@ -76,6 +96,68 @@ div.combo-p.panel {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.combo-arrow-hover{
|
||||
filter:alpha(opacity=70);
|
||||
opacity:0.7;
|
||||
}
|
||||
|
||||
|
||||
/* H2 COMBO */
|
||||
|
||||
|
||||
.content h2 span span.combo {
|
||||
padding-left: 4px !important;
|
||||
padding-top: 0;
|
||||
border: 1px solid #cccccc;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 0 3px 0 #dddddd inset;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.content h2 span span.combo:hover {
|
||||
border: 1px solid #aaaaaa;
|
||||
box-shadow: 0 0 3px 0 #bbbbbb inset;
|
||||
}
|
||||
|
||||
.content > h2 > span > span.combo > input.textbox-text {
|
||||
height: 20px !important;
|
||||
line-height: 20px !important;
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.content h2 span span.combo span.textbox-addon-right a.combo-arrow{
|
||||
top: 0px !important;
|
||||
left: 0px !important;
|
||||
}
|
||||
|
||||
body.rtl .content h2 span span.combo span.textbox-addon-left a.combo-arrow{
|
||||
top: 0px !important;
|
||||
right: 0px !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* DATAGRID */
|
||||
|
||||
div.panel.datagrid > div.datagrid-wrap.panel-body {
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* TREE */
|
||||
|
||||
.tree
|
||||
{
|
||||
}
|
||||
|
||||
.tree-node-hover, .tree-node-selected{
|
||||
background: #E4ECFF;
|
||||
box-shadow: 0px 0px 4px 1px #C8D9FF inset;
|
||||
}
|
||||
|
||||
|
||||
.tree-icon.tree-folder.countryNode {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
/*,
|
||||
@@ -140,7 +222,7 @@ body.rtl .combo-arrow {
|
||||
box-shadow: 0 0 3px 0 #bbbbbb inset;
|
||||
}
|
||||
|
||||
.content > h2 > span > span.combo > input.combo-text {
|
||||
.content > h2 > span > span.combo > input.textbox-text {
|
||||
height: 20px !important;
|
||||
line-height: 20px !important;
|
||||
border: 0 !important;
|
||||
@@ -152,9 +234,6 @@ body.rtl .combo-arrow {
|
||||
left: 0px !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.combo-arrow-hover{
|
||||
opacity:0.7;
|
||||
filter:alpha(opacity=70);
|
||||
|
||||
Reference in New Issue
Block a user