Permalink
Browse files

Correct contains operator into equals within afterUpdate function.

  • Loading branch information...
1 parent ab52926 commit 33d95233d0c0626800600c74c24ba6606b46ba9d @chrisobdam chrisobdam committed Apr 5, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 assets/jzip/rich/cms/editor.js
@@ -1,4 +1,3 @@
-
Rich.Cms.Editor = (function() {
var content_class = "rich_cms_content", mark_class = "marked", edit_panel = "#rich_cms_panel",
editable_content = {}, content_items = "",
@@ -159,7 +158,7 @@ Rich.Cms.Editor = (function() {
var afterUpdate = function(form, response) {
var selector = response["__selector__"];
var specs = editable_content[selector];
- var identifier = $.map(specs.keys, function(key) { return "[" + key + "^=" + response["__identifier__"][key.replace(/^data-/, "")] + "]"; }).join("");
+ var identifier = $.map(specs.keys, function(key) { return "[" + key + "=" + response["__identifier__"][key.replace(/^data-/, "")] + "]"; }).join("");
var defaultFunction = function(form, response, selector, specs, identifier) {
var value = response[specs.value.replace(/^data-/, "")];

0 comments on commit 33d9523

Please sign in to comment.