if isnew:
if (self.node is None) or (not self.node.nis.wiki):
self.repute_users()
+
+ if isnew:
self.process_action()
+
+ if isnew:
self.trigger_hooks(threaded, True)
return self
copy_id = ' id="copy_clip_button"'\r
}\r
\r
- if (options.event != undefined) {\r
+ if (options.event != undefined && options.event.pageX != undefined && options.event.pageY != undefined) {\r
options.pos = {x: options.event.pageX, y: options.event.pageY};\r
+ } else if (options.event.currentTarget != undefined) {\r
+ var el = jQuery("#" + options.event.currentTarget.id);\r
+ var position = el.offset();\r
+ options.pos = {\r
+ x: position.left,\r
+ y: position.top\r
+ }\r
}\r
\r
var html = '<div class="dialog ' + options.extra_class + '" style="display: none; z-index: 999;">'\r
show_no: true,
no_callback: function() {
$(".dialog").fadeOut("fast", function() {
- $('.dialog').remove();
+ $('.dialog').remove();
})
},
$('.award_points_slider').slider({
min: 1, max: user_reputation,
- slide: function(evt, ui) {
- $('#points_input').val(ui.value);
- points_award_confirm(Number(ui.value), evt)
- }
+ slide: function(evt, ui) {
+ $('#points_input').val(ui.value);
+ points_award_confirm(Number(ui.value), evt)
+ }
});
- $('#points_input').bind('change keydown', function(evt) {
+ $('#points_input').live('change keyup', function(evt) {
if ($(this).val() > user_reputation) {
- $(this).attr('value', user_reputation);
- }
- $('.award_points_slider').slider('option', 'value', $(this).val())
+ $(this).attr('value', user_reputation);
+ }
+
+ points_award_confirm(Number($(this).val()), evt);
+
+ $('.award_points_slider').slider('option', 'value', $(this).val());
- points_award_confirm(Number($(this).val()), evt);
});
</script>
\ No newline at end of file
-<?xml version="1.0" encoding="UTF-8"?>\r
-<module type="PYTHON_MODULE" version="4">\r
- <component name="FacetManager">\r
- <facet type="django" name="Django">\r
- <configuration>\r
- <option name="rootFolder" value="$MODULE_DIR$" />\r
- <option name="settingsModule" value="settings.py" />\r
- <option name="manageScript" value="manage.py" />\r
- </configuration>\r
- </facet>\r
- </component>\r
- <component name="NewModuleRootManager" inherit-compiler-output="false">\r
- <content url="file://$MODULE_DIR$" />\r
- <orderEntry type="inheritedJdk" />\r
- <orderEntry type="sourceFolder" forTests="false" />\r
- </component>\r
-</module>\r
-\r
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="PYTHON_MODULE" version="4">
+ <component name="FacetManager">
+ <facet type="django" name="Django">
+ <configuration>
+ <option name="rootFolder" value="$MODULE_DIR$" />
+ <option name="settingsModule" value="settings.py" />
+ <option name="manageScript" value="manage.py" />
+ </configuration>
+ </facet>
+ </component>
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
+ <exclude-output />
+ <content url="file://$MODULE_DIR$" />
+ <orderEntry type="jdk" jdkName="Python 2.7.1 (/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7)" jdkType="Python SDK" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ </component>
+ <component name="TemplatesService">
+ <option name="templateLanguage" value="Django" />
+ <option name="TEMPLATE_CONFIGURATION" value="Django" />
+ <option name="TEMPLATE_FOLDERS">
+ <list>
+ <option value="$MODULE_DIR$/templates" />
+ </list>
+ </option>
+ </component>
+</module>
+