]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - js/util.js
jquery infieldlabel.js removed from script list
[quix0rs-gnu-social.git] / js / util.js
index 5995294d8f9eeb49e4eff0ed1d9e4c2ead992d40..85f917b09aeb67f107f20814c0f71166c2396342 100644 (file)
@@ -591,12 +591,16 @@ var SN = { // StatusNet
                 e.preventDefault();
                 var noticeEl = $(this).closest('.notice');
                 $.get($(this).attr('href'), {ajax: 1}, function (data, textStatus, xhr) {
-                    noticeEl.replaceWith($('body', data).html());
+                    SN.U.NoticeOptionPopup($('body', data).html());
                 });
                 return false;
             });
         },
 
+        NoticeOptionPopup: function (html) {
+            dialog = $(html).dialog();
+        },
+
         /**
          * Setup function -- DOES NOT trigger actions immediately.
          *
@@ -795,6 +799,14 @@ var SN = { // StatusNet
             });
         },
 
+        NoticeOptionPopup: function (html) {
+            dialog = $(html).dialog({
+                    resizable: false,
+                    height: 150,
+                    modal: true,
+                });
+        },
+
         /**
          * Setup function -- DOES NOT trigger actions immediately.
          *
@@ -1433,9 +1445,6 @@ var SN = { // StatusNet
                         });
                     }
                 });
-
-                // Infield labels for notice form inputs.
-                $('.input_forms fieldset fieldset label').inFieldLabels({ fadeOpacity:0 });
             }
         },