Permalink
Browse files

Tweak save button visualization

  • Loading branch information...
1 parent 08f52cf commit d10b027fbb7aee8153a2a29d011ee16aba9359c7 @bergie bergie committed Mar 29, 2012
Showing with 17 additions and 5 deletions.
  1. +1 −1 deps/hallo.js
  2. +1 −1 examples/create-min.js
  3. +3 −1 examples/create.js
  4. +3 −1 src/jquery.Midgard.midgardStorage.js
  5. +9 −1 themes/create-ui/css/create-ui.css
View
@@ -1747,7 +1747,7 @@
_prepareButton: function() {
var button, buttonEl, id;
id = "" + this.options.uuid + "-" + this.options.label;
- buttonEl = jQuery("<button id=\"" + id + "\" data-toggle=\"dropdown\" data-target=\"#" + (this.options.target.attr('id')) + "\" title=\"" + this.options.label + "\">\n <span class=\"ui-button-text\"><i class=\"" + this.options.icon + "\"></i></span>\n</button>");
+ buttonEl = jQuery("<button id=\"" + id + "\" data-toggle=\"dropdown\" data-target=\"#" + (this.options.target.attr('id')) + "\" title=\"" + this.options.label + "\">\n <i class=\"" + this.options.icon + "\"></span>\n</button>");
if (this.options.cssClass) buttonEl.addClass(this.options.cssClass);
button = buttonEl.button();
return button;
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1290,7 +1290,7 @@
widget.options.changedModels.push(options.instance);
}
widget._saveLocal(options.instance);
- jQuery('#midgardcreate-save').show();
+ jQuery('#midgardcreate-save').button({disabled: false});
});
widget.element.bind('midgardeditabledisable', function (event, options) {
@@ -1299,6 +1299,8 @@
});
widget.element.bind('midgardeditableenable', function (event, options) {
+ jQuery('#midgardcreate-save').button({disabled: true});
+ jQuery('#midgardcreate-save').show();
if (options.instance.id) {
widget._readLocal(options.instance);
}
@@ -45,7 +45,7 @@
widget.options.changedModels.push(options.instance);
}
widget._saveLocal(options.instance);
- jQuery('#midgardcreate-save').show();
+ jQuery('#midgardcreate-save').button({disabled: false});
});
widget.element.bind('midgardeditabledisable', function (event, options) {
@@ -54,6 +54,8 @@
});
widget.element.bind('midgardeditableenable', function (event, options) {
+ jQuery('#midgardcreate-save').button({disabled: true});
+ jQuery('#midgardcreate-save').show();
if (options.instance.id) {
widget._readLocal(options.instance);
}
@@ -233,7 +233,7 @@ body > .hallotoolbar {
padding: 0;
}
-.create-ui-btn-small:hover, .create-ui-toolbar-wrapper .ui-state-active {
+.create-ui-btn-small:hover, .create-ui-toolbar-wrapper .create-ui-toolbar-dynamictoolarea .ui-state-active {
background-color: #ffffff;
border-radius: 6px;
background-position: 0 -30px;
@@ -428,6 +428,14 @@ body > .hallotoolbar {
top: -8px;
}
+.create-ui-statustools .ui-state-disabled .create-ui-btn {
+ background-color: transparent;
+ color: #393939;
+ background-image: none;
+ border-color: #393939 #393939 #393939;
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
+}
+
.dropdown-menu li {
float: none;
}

0 comments on commit d10b027

Please sign in to comment.