Created
July 14, 2015 00:01
-
-
Save betobaz/3c82dd8502a24829485e to your computer and use it in GitHub Desktop.
SugarCRM::Sidecar::Show model in preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
showPreview: function(moduleName, modelId){ | |
var bean = App.data.createBean(moduleName, {id:modelId}); | |
bean.fetch(); | |
App.events.trigger('preview:render', bean); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment