mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-22 19:33:48 +01:00
fixing wrong reference variable
This commit is contained in:
parent
bfe24b7dfb
commit
754d4b3dcf
@ -66,7 +66,6 @@ jQuery.fn.dataTableExt.removeSelectedRows = function () {
|
||||
updateStatusToolbar();
|
||||
};
|
||||
|
||||
|
||||
jQuery.fn.dialogForm = function (options) {
|
||||
|
||||
var containerId = this[0].id;
|
||||
@ -79,7 +78,7 @@ jQuery.fn.dialogForm = function (options) {
|
||||
// Clear form values ...
|
||||
if (options.clearForm == undefined || options.clearForm) {
|
||||
//FIXME: icon and color should be handled as exceptions..
|
||||
$("#" + containerId).find('input[name!="color"]input[name!="icon"]').val('');
|
||||
$("#" + containerId).find('input[name!="color"]input[name!="iconName"]').val('');
|
||||
}
|
||||
|
||||
// Clear button "Saving..." state ...
|
||||
@ -178,7 +177,6 @@ jQuery.fn.dialogForm = function (options) {
|
||||
|
||||
};
|
||||
|
||||
|
||||
// Update toolbar events ...
|
||||
function updateStatusToolbar() {
|
||||
|
||||
@ -567,7 +565,7 @@ function createLabelItem(data, id) {
|
||||
var labelItem = $("<li data-filter=\"" + data.title + "\">");
|
||||
labelItem.append(
|
||||
"<a href=\"#\"> " +
|
||||
"<i class=\"" + data.icon + " labelIcon\"></i>" +
|
||||
"<i class=\"" + data.iconName + " labelIcon\"></i>" +
|
||||
"<div class='labelColor' style='background: " + data.color + "'></div>" +
|
||||
"<div class='labelName labelNameList'>" + data.title + "</div>" +
|
||||
"<button id='deleteLabelBtn' class='close closeLabel' labelid=\""+ labelId +"\">x</button>" +
|
||||
@ -641,7 +639,7 @@ function prepareLabelList(labels) {
|
||||
$('<li class="chooseLabel"></li>').attr('value', value.id).attr('color', value.color).attr('icon', value.icon)
|
||||
.append(
|
||||
'<a href="#" onclick="return false">' +
|
||||
"<div class='labelIcon " + value.icon + "'></div>" +
|
||||
"<div class='labelIcon " + value.iconName + "'></div>" +
|
||||
"<div class='labelColor' style='background: " + value.color + "'></div>" +
|
||||
"<div class='labelName'>" + value.title + "</div>" +
|
||||
'</a>')
|
||||
|
@ -354,7 +354,7 @@
|
||||
</div>
|
||||
<div id="iconGroup" class="form-group">
|
||||
<label class="col-md-3 control-label" for="iconChooser"><spring:message code="ICON"/>:</label>
|
||||
<input class="form-control" name="icon" id="iconChooser" style="display: none" required="required" value="glyphicon glyphicon-tag"/>
|
||||
<input class="form-control" name="iconName" id="iconChooser" style="display: none" required="required" value="glyphicon glyphicon-tag"/>
|
||||
<div class="col-md-1">
|
||||
<div class="btn dropdown-toggle" id="defaultIcon" data-toggle="dropdown">
|
||||
<i class="glyphicon glyphicon-tag"></i>
|
||||
|
Loading…
Reference in New Issue
Block a user